|
libhatchet
|
#include <hxflat_map.hpp>
Public Member Functions | |
| const_iterator (void) | |
| const const_iterator & | operator* (void) const |
| const_iterator & | operator+= (hxsize_t n_) |
| const_iterator & | operator-= (hxsize_t n_) |
| const_iterator | operator+ (hxsize_t n_) const |
| const_iterator | operator- (hxsize_t n_) const |
| hxsize_t | operator- (const const_iterator &x_) const |
| const_iterator | operator[] (hxsize_t n_) const |
| const_iterator & | operator++ (void) |
| const_iterator | operator++ (int) |
| const_iterator & | operator-- (void) |
| const_iterator | operator-- (int) |
| bool | operator== (const const_iterator &x_) const |
| bool | operator< (const const_iterator &x_) const |
| bool | operator> (const const_iterator &x_) const |
| bool | operator<= (const const_iterator &x_) const |
| bool | operator>= (const const_iterator &x_) const |
| const key_t_ & | key (void) const |
| const mapped_t_ & | value (void) const |
const_iterator - A random-access iterator over key-value pairs.
Iterators are invalidated by any insert or erase operation. Dereference via operator* returns a const const_iterator& so callers can use key() and value().
|
inline |
Constructs an end iterator.
| const key_t_ & hxflat_map< key_t_, mapped_t_, compare_t_, multi_t_, capacity_ >::const_iterator::key | ( | void | ) | const |
Returns the key at the current position.
This is simple so the compiler errors are simple.
|
inline |
|
inline |
Returns an iterator advanced by n positions.
|
inline |
Advances the iterator to the next element (post-increment).
|
inline |
Advances the iterator to the next element.
| const_iterator & hxflat_map< key_t_, mapped_t_, compare_t_, multi_t_, capacity_ >::const_iterator::operator+= | ( | hxsize_t | n_ | ) |
Advances the iterator by n positions.
| hxsize_t hxflat_map< key_t_, mapped_t_, compare_t_, multi_t_, capacity_ >::const_iterator::operator- | ( | const const_iterator & | x_ | ) | const |
Returns the signed distance between two iterators.
|
inline |
Returns an iterator retreated by n positions.
|
inline |
Retreats the iterator to the previous element (post-decrement).
|
inline |
Retreats the iterator to the previous element.
|
inline |
Moves the iterator back by n positions.
| bool hxflat_map< key_t_, mapped_t_, compare_t_, multi_t_, capacity_ >::const_iterator::operator< | ( | const const_iterator & | x_ | ) | const |
Returns true when this iterator is ordered before x.
|
inline |
Returns true when this iterator is not ordered after x.
| bool hxflat_map< key_t_, mapped_t_, compare_t_, multi_t_, capacity_ >::const_iterator::operator== | ( | const const_iterator & | x_ | ) | const |
Compares two iterators for equality.
|
inline |
Returns true when this iterator is ordered after x.
|
inline |
Returns true when this iterator is not ordered before x.
|
inline |
Returns a copy of the iterator offset by n positions.
| const mapped_t_ & hxflat_map< key_t_, mapped_t_, compare_t_, multi_t_, capacity_ >::const_iterator::value | ( | void | ) | const |
Returns the mapped value at the current position.
This is simple so the compiler errors are simple.