|
| | Iterator_with_range ()=default |
| | Construct a singular object. More...
|
| |
| | Iterator_with_range (const Range_t &range, const Iterator_t &iterator) |
| | Construct a new object from the given range, and set the iterator to the beginning. More...
|
| |
| | Iterator_with_range (const Range_t &range) |
| | Construct a new object from the given range, and set the iterator to the beginning. More...
|
| |
| decltype(auto) | get () const |
| |
| decltype(auto) | get_pointer () const |
| |
| void | next () |
| |
| void | prev () |
| |
| void | advance (std::ptrdiff_t delta) |
| |
| bool | is_equal (const Iterator_with_range &other) const |
| |
| std::ptrdiff_t | distance_from (const Iterator_with_range &other) const |
| |
| auto & | range () |
| |
| const auto & | range () const |
| |
| auto & | iterator () |
| |
| const auto & | iterator () const |
| |
| bool | is_end () const |
| |
| decltype(auto) | operator* () const |
| | Dereference operator, which returns the current value. More...
|
| |
| auto | operator-> () const |
| | Arrow operator, return a pointer (possibly a fancy pointer) to the current element. More...
|
| |
| Self_t & | operator++ () |
| | Pre-increment operator, which advances the position one step and returns a reference to the iterator itself. More...
|
| |
| auto | operator++ (int) |
| | Post-increment operator, which advances the position one step. More...
|
| |
| Self_t & | operator-- () |
| | Pre-decrement iterator, which moves one step back and returns a reference to the iterator itself. More...
|
| |
| auto | operator-- (int) |
| | Post-decrement operator, which moves one step back and returns a copy of the iterator before the decrement. More...
|
| |
| Self_t & | operator+= (std::ptrdiff_t delta) |
| | Addition assignment operator, which moves the iterator forward by the given number of steps, and returns a reference to the iterator itself. More...
|
| |
| Self_t & | operator-= (std::ptrdiff_t delta) |
| | Subtraction assignment operator, which moves the iterator backward by the given number of steps, and returns a reference to the iterator itself. More...
|
| |
| Self_t | operator+ (std::ptrdiff_t delta) const |
| | Addition operator, which returns a new iterator that is the given number of steps ahead of the current iterator. More...
|
| |
| Self_t | operator- (std::ptrdiff_t delta) const |
| | Subtraction-of-integer operator, which returns a new iterator that is the given number of steps behind of the current iterator. More...
|
| |
| std::ptrdiff_t | operator- (const Self_t &other) const |
| | Subtraction-of-iterator operator, which returns the number of steps from other this. More...
|
| |
| decltype(auto) | operator[] (std::ptrdiff_t delta) const |
| | Subscript operator, which returns a new iterator that is the given number of steps ahead of the current iterator. More...
|
| |
template<std::ranges::range Range_tp>
class mysql::ranges::Iterator_with_range< Range_tp >
Iterator that holds a reference to its source range.
Since the iterator knows its range, it always knows whether it is positioned at the end, without having to compare with other objects.