CONZEPT 16 C++ API
|
const-Iterator for elements of an array. More...
#include "C16/Array.hpp"
const-Iterator for elements of an array.
Public Types | |
using | value_type = const Element |
Type of the elements of the iterator. More... | |
using | reference = const Element & |
Type of a reference to an element of the iterator. More... | |
using | pointer = const Element * |
Type of a pointer to an element of the iterator. More... | |
![]() | |
using | difference_type = std::ptrdiff_t |
Type of the difference of iterators. More... | |
Public Member Functions | |
IteratorConst () | |
Constructs an invalid iterator. More... | |
IteratorConst (const IteratorConst &other) | |
Constructs an iterator by copying another iterator. More... | |
IteratorConst & | operator= (const IteratorConst &other) |
Assigns the iterator from another iterator. More... | |
reference | operator* () const |
Gets the element of the iterator. More... | |
pointer | operator-> () const |
Gets the element of the iterator. More... | |
IteratorConst & | operator++ () |
Increments the iterator. More... | |
IteratorConst & | operator-- () |
Decrements the iterator. More... | |
IteratorConst & | operator+= (difference_type offset) |
Increments the iterator. More... | |
IteratorConst & | operator-= (difference_type offset) |
Decrements the iterator. More... | |
IteratorConst | operator++ (int) |
Gets an incremented iterator. More... | |
IteratorConst | operator-- (int) |
Gets a decremented iterator. More... | |
IteratorConst | operator+ (difference_type offset) const |
Gets an incremented iterator. More... | |
IteratorConst | operator- (difference_type offset) const |
Gets a decremented iterator. More... | |
![]() | |
bool | operator== (const IteratorGeneric &other) const |
Gets if the iterator is equal to another iterator. More... | |
bool | operator!= (const IteratorGeneric &other) const |
Gets if the iterator is unequal to another iterator. More... | |
bool | operator<= (const IteratorGeneric &other) const |
Gets if the iterator is lower than or equal to another iterator. More... | |
bool | operator>= (const IteratorGeneric &other) const |
Gets if the iterator is greater than or equal to another iterator. More... | |
bool | operator< (const IteratorGeneric &other) const |
Gets if the iterator is lower than another iterator. More... | |
bool | operator> (const IteratorGeneric &other) const |
Gets if the iterator is greater than another iterator. More... | |
difference_type | operator- (const IteratorGeneric &other) const |
Gets the difference to another iterator. More... | |
using C16::Array< Element >::IteratorConst::value_type = const Element |
Type of the elements of the iterator.
using C16::Array< Element >::IteratorConst::reference = const Element& |
Type of a reference to an element of the iterator.
using C16::Array< Element >::IteratorConst::pointer = const Element* |
Type of a pointer to an element of the iterator.
C16::Array< Element >::IteratorConst::IteratorConst | ( | ) |
Constructs an invalid iterator.
C16::Array< Element >::IteratorConst::IteratorConst | ( | const IteratorConst & | other | ) |
Constructs an iterator by copying another iterator.
other | Another iterator |
IteratorConst& C16::Array< Element >::IteratorConst::operator= | ( | const IteratorConst & | other | ) |
Assigns the iterator from another iterator.
other | Another iterator |
reference C16::Array< Element >::IteratorConst::operator* | ( | ) | const |
Gets the element of the iterator.
pointer C16::Array< Element >::IteratorConst::operator-> | ( | ) | const |
Gets the element of the iterator.
IteratorConst& C16::Array< Element >::IteratorConst::operator++ | ( | ) |
Increments the iterator.
IteratorConst& C16::Array< Element >::IteratorConst::operator-- | ( | ) |
Decrements the iterator.
IteratorConst& C16::Array< Element >::IteratorConst::operator+= | ( | difference_type | offset | ) |
Increments the iterator.
offset | Offset to increment the iterator by |
IteratorConst& C16::Array< Element >::IteratorConst::operator-= | ( | difference_type | offset | ) |
Decrements the iterator.
offset | Offset to decrement the iterator by |
IteratorConst C16::Array< Element >::IteratorConst::operator++ | ( | int | ) |
Gets an incremented iterator.
IteratorConst C16::Array< Element >::IteratorConst::operator-- | ( | int | ) |
Gets a decremented iterator.
IteratorConst C16::Array< Element >::IteratorConst::operator+ | ( | difference_type | offset | ) | const |
Gets an incremented iterator.
offset | Offset to increment the iterator by |
IteratorConst C16::Array< Element >::IteratorConst::operator- | ( | difference_type | offset | ) | const |
Gets a decremented iterator.
offset | Offset to decrement the iterator by |