template<bool IsConst>
robometry::CircularBuffer::Iterator class

Public types

using iterator_category = std::random_access_iterator_tag
using value_type = T
using difference_type = std::ptrdiff_t
using reference = std::conditional_t<IsConst, const T&, T&>
using pointer = std::conditional_t<IsConst, const T*, T*>

Constructors, destructors, conversion operators

Iterator() defaulted noexcept
template<bool OtherConst, std::enable_if_t<IsConst && !OtherConst, int> = 0>
Iterator(const Iterator<OtherConst>& other) noexcept

Public functions

auto operator*() const -> reference
auto operator->() const -> pointer
auto operator[](difference_type n) const -> reference
auto operator++() -> Iterator& noexcept
auto operator++(int) -> Iterator noexcept
auto operator--() -> Iterator& noexcept
auto operator--(int) -> Iterator noexcept
auto operator+=(difference_type n) -> Iterator& noexcept
auto operator-=(difference_type n) -> Iterator& noexcept
auto operator+(difference_type n) const -> Iterator noexcept
auto operator-(difference_type n) const -> Iterator noexcept
template<bool OtherConst>
auto operator-(const Iterator<OtherConst>& other) const -> difference_type noexcept
template<bool OtherConst>
auto operator==(const Iterator<OtherConst>& other) const -> bool noexcept
template<bool OtherConst>
auto operator!=(const Iterator<OtherConst>& other) const -> bool noexcept
template<bool OtherConst>
auto operator<(const Iterator<OtherConst>& other) const -> bool noexcept
template<bool OtherConst>
auto operator>(const Iterator<OtherConst>& other) const -> bool noexcept
template<bool OtherConst>
auto operator<=(const Iterator<OtherConst>& other) const -> bool noexcept
template<bool OtherConst>
auto operator>=(const Iterator<OtherConst>& other) const -> bool noexcept

Friends

auto operator+(difference_type n, Iterator it) -> Iterator noexcept