Skip to content

Constant Iterator

Kamil Krauze edited this page Jan 18, 2024 · 7 revisions

Allocation

inline const_iterator() noexcept

inline const_iterator(PointerType ptr) noexcept


Accessor operators

_NODISCARD inline ReferenceType operator[](const size_t index) const noexcept

_NODISCARD inline PointerType operator->() const noexcept

_NODISCARD inline ReferenceType operator*() const noexcept


Arithmetical operators

inline const_iterator& operator++() noexcept

inline const_iterator operator++(int) noexcept

inline const_iterator& operator--() noexcept

inline const_iterator operator--(int) noexcept

inline const_iterator& operator+=(const size_t val) noexcept

_NODISCARD inline const_iterator operator+(const size_t val) const noexcept

inline const_iterator& operator-=(const size_t val) noexcept

_NODISCARD inline const_iterator operator-(const size_t val) const noexcept


Relational Operators

bool operator==(const const_iterator& other) const noexcept

bool operator!=(const const_iterator& other) const noexcept

bool operator>=(const const_iterator& other) const noexcept

bool operator<=(const const_iterator& other) const noexcept

bool operator>(const const_iterator& other) const noexcept

bool operator<(const const_iterator& other) const noexcept

Clone this wiki locally