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