cptr::detail::basic_unordered_map::basic_iterator

A forward iterator: the node, and the bucket array and its size, so that it can move on to the next bucket. It does not refer to the map object, so like std's iterators it stays valid when the map is moved or swapped; a rehash invalidates it. With compressed links it is 16 bytes.

Synopsis

Declared in <cptr/unordered_map.hpp>

template<bool Const>
class basic_iterator;

Type Aliases

Name
difference_type
iterator_category
pointer
reference
value_type

Member Functions

NameDescription
basic_iterator [constructor]Constructors
operator*
operator++ Increment operators
operator->

Friends

NameDescription
cptr::detail::basic_unordered_map::basic_iteratorA forward iterator: the node, and the bucket array and its size, so that it can move on to the next bucket. It does not refer to the map object, so like std's iterators it stays valid when the map is moved or swapped; a rehash invalidates it. With compressed links it is 16 bytes.
cptr::detail::basic_unordered_mapThe class behind cptr::unordered_map; use that alias. Its members behave like those of std::unordered_map; the alias lists the differences.
cptr::detail::operator==Equality operator