Nonmodifiable data iterator. More...
#include <Array.h>
Public Types | |
using | iterator_category = std::random_access_iterator_tag |
using | value_type = T |
using | difference_type = int |
using | pointer = const T * |
using | reference = const T & |
Public Member Functions | |
constexpr | const_iterator (const Array &instance, std::size_t initPosition) noexcept |
constexpr | const_iterator (const const_iterator &other) noexcept |
constexpr | const_iterator (const_iterator &&other) noexcept=default |
constexpr const_iterator & | operator= (const const_iterator &other) |
constexpr const_iterator & | operator= (const_iterator &&other) noexcept=default |
constexpr const_iterator & | operator++ () noexcept |
constexpr const_iterator | operator++ (int) noexcept |
constexpr const_iterator & | operator-- () noexcept |
constexpr const_iterator | operator-- (int) noexcept |
constexpr const_iterator | operator+ (const int increment) noexcept |
constexpr const_iterator | operator- (const int increment) noexcept |
constexpr const_iterator & | operator+= (const int increment) noexcept |
constexpr const_iterator & | operator-= (const int increment) noexcept |
constexpr int | operator- (const const_iterator &other) const noexcept |
constexpr bool | operator== (const const_iterator &other) const noexcept |
constexpr bool | operator!= (const const_iterator &other) const noexcept |
constexpr reference | operator* () const noexcept |
Private Attributes | |
const Array & | baseRef_ |
std::size_t | position_ |
Nonmodifiable data iterator.