class
#include <bn_unordered_map.h>
const_iterator Const iterator.
In contrast to std::unordered_map::const_iterator, this one is bidirectional.
Public types
-
using key_type = iunordered_map::
key_type - Key type alias.
-
using mapped_type = iunordered_map::
mapped_type - Value type alias.
-
using value_type = iunordered_map::
value_type - (Key, Value) pair type alias.
-
using size_type = iunordered_map::
size_type - Size type alias.
-
using difference_type = iunordered_map::
difference_type - Difference type alias.
-
using hash_type = iunordered_map::
hash_type - Hash type alias.
-
using hasher = iunordered_map::
hasher - Hash functor alias.
-
using key_equal = iunordered_map::
key_equal - Equality functor alias.
-
using reference = iunordered_map::
const_reference - (Key, Value) pair reference alias.
-
using pointer = iunordered_map::
const_pointer - (Key, Value) pair pointer alias.
- using iterator_category = bidirectional_iterator_tag
- Iterator category alias.
Constructors, destructors, conversion operators
- const_iterator() defaulted
- Default class constructor.
- const_iterator(const iterator& it)
- Public constructor.
Public functions
-
auto operator++() -> const_
iterator& - Increments the position.
-
auto operator++(int) -> const_
iterator - Increments the position.
-
auto operator--() -> const_
iterator& - Decrements the position.
-
auto operator--(int) -> const_
iterator - Decrements the position.
-
auto operator*() const -> const_
reference - Returns a const reference to the pointed (Key, Value) pair.
-
auto operator->() const -> const_
pointer - Returns a const pointer to the pointed (Key, Value) pair.
Friends
-
auto operator==(const const_
iterator& a, const const_ iterator& b) -> bool - Equal operator.
-
auto operator!=(const const_
iterator& a, const const_ iterator& b) -> bool - Not equal operator.
Function documentation
bn:: iunordered_map:: const_iterator:: const_iterator(const iterator& it)
Public constructor.
Parameters | |
---|---|
it | Non const iterator. |
const_ iterator& bn:: iunordered_map:: const_iterator:: operator++()
Increments the position.
Returns | Reference to this. |
---|
const_ iterator bn:: iunordered_map:: const_iterator:: operator++(int)
Increments the position.
Returns | The iterator before being incremented. |
---|
const_ iterator& bn:: iunordered_map:: const_iterator:: operator--()
Decrements the position.
Returns | Reference to this. |
---|
const_ iterator bn:: iunordered_map:: const_iterator:: operator--(int)
Decrements the position.
Returns | The iterator before being decremented. |
---|
bool operator==(const const_ iterator& a,
const const_ iterator& b)
Equal operator.
Parameters | |
---|---|
a | First const_ |
b | Second const_ |
Returns | true if the first const_false . |
bool operator!=(const const_ iterator& a,
const const_ iterator& b)
Not equal operator.
Parameters | |
---|---|
a | First const_ |
b | Second const_ |
Returns | true if the first const_false . |