|
IOSS 2.0
|
#include <hopscotch_hash.h>
Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| using | value_type = const typename hopscotch_hash::value_type |
| using | difference_type = std::ptrdiff_t |
| using | reference = value_type & |
| using | pointer = value_type * |
Public Member Functions | |
| hopscotch_iterator () noexcept | |
| template<bool TIsConst = IsConst, typename std::enable_if< TIsConst >::type * = nullptr> | |
| hopscotch_iterator (const hopscotch_iterator<!TIsConst > &other) noexcept | |
| hopscotch_iterator (const hopscotch_iterator &other)=default | |
| hopscotch_iterator (hopscotch_iterator &&other)=default | |
| hopscotch_iterator & | operator= (const hopscotch_iterator &other)=default |
| hopscotch_iterator & | operator= (hopscotch_iterator &&other)=default |
| const hopscotch_hash::key_type & | key () const |
| template<class U = ValueSelect, typename std::enable_if< has_mapped_type< U >::value >::type * = nullptr> | |
| std::conditional< IsConst, consttypenameU::value_type &, typenameU::value_type & >::type | value () const |
| reference | operator* () const |
| pointer | operator-> () const |
| hopscotch_iterator & | operator++ () |
| hopscotch_iterator | operator++ (int) |
Private Types | |
| using | iterator_bucket |
| using | iterator_overflow |
Private Member Functions | |
| hopscotch_iterator (iterator_bucket buckets_iterator, iterator_bucket buckets_end_iterator, iterator_overflow overflow_iterator) noexcept | |
Private Attributes | |
| iterator_bucket | m_buckets_iterator |
| iterator_bucket | m_buckets_end_iterator |
| iterator_overflow | m_overflow_iterator |
Friends | |
| class | hopscotch_hash |
| bool | operator== (const hopscotch_iterator &lhs, const hopscotch_iterator &rhs) |
| bool | operator!= (const hopscotch_iterator &lhs, const hopscotch_iterator &rhs) |
The operator*() and operator->() methods return a const reference and const pointer respectively to the stored value type.
In case of a map, to get a modifiable reference to the value associated to a key (the .second in the stored pair), you have to call value().
| using tsl::detail_hopscotch_hash::hopscotch_hash< ValueType, KeySelect, ValueSelect, Hash, KeyEqual, Allocator, NeighborhoodSize, StoreHash, GrowthPolicy, OverflowContainer >::hopscotch_iterator< IsConst >::difference_type = std::ptrdiff_t |
|
private |
| using tsl::detail_hopscotch_hash::hopscotch_hash< ValueType, KeySelect, ValueSelect, Hash, KeyEqual, Allocator, NeighborhoodSize, StoreHash, GrowthPolicy, OverflowContainer >::hopscotch_iterator< IsConst >::iterator_category = std::forward_iterator_tag |
|
private |
| using tsl::detail_hopscotch_hash::hopscotch_hash< ValueType, KeySelect, ValueSelect, Hash, KeyEqual, Allocator, NeighborhoodSize, StoreHash, GrowthPolicy, OverflowContainer >::hopscotch_iterator< IsConst >::pointer = value_type * |
| using tsl::detail_hopscotch_hash::hopscotch_hash< ValueType, KeySelect, ValueSelect, Hash, KeyEqual, Allocator, NeighborhoodSize, StoreHash, GrowthPolicy, OverflowContainer >::hopscotch_iterator< IsConst >::reference = value_type & |
| using tsl::detail_hopscotch_hash::hopscotch_hash< ValueType, KeySelect, ValueSelect, Hash, KeyEqual, Allocator, NeighborhoodSize, StoreHash, GrowthPolicy, OverflowContainer >::hopscotch_iterator< IsConst >::value_type = const typename hopscotch_hash::value_type |
|
inlineprivatenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
|
default |
|
inline |
|
friend |
|
friend |
|
friend |
|
private |
|
private |
|
private |