Include file:
#include "mcrl2/utilities/unordered_map.h
mcrl2::utilities::
unordered_map
¶A class for a map of keys to values in T based using the simple hash table set implementation.
mcrl2::utilities::unordered_map::
allocator_type
¶typedef for typename std::allocator_traits< Allocator >::template rebind_alloc< value_type >
mcrl2::utilities::unordered_map::
const_iterator
¶typedef for typename Set::const_iterator
mcrl2::utilities::unordered_map::
const_local_iterator
¶typedef for typename Set::const_local_iterator
mcrl2::utilities::unordered_map::
const_pointer
¶typedef for typename std::allocator_traits< Allocator >::const_pointer
mcrl2::utilities::unordered_map::
const_reference
¶typedef for const value_type &
mcrl2::utilities::unordered_map::
difference_type
¶typedef for std::ptrdiff_t
mcrl2::utilities::unordered_map::
hasher
¶typedef for Hash
mcrl2::utilities::unordered_map::
insert_return_type
¶typedef for std::pair< unordered_map::iterator, bool >
mcrl2::utilities::unordered_map::
iterator
¶typedef for typename Set::template unordered_set_iterator< bucket_type, false >
mcrl2::utilities::unordered_map::
key_equal
¶typedef for KeyEqual
mcrl2::utilities::unordered_map::
key_type
¶typedef for Key
mcrl2::utilities::unordered_map::
local_iterator
¶typedef for typename bucket_type::iterator
mcrl2::utilities::unordered_map::
mapped_type
¶typedef for T
mcrl2::utilities::unordered_map::
node_type
¶typedef for value_type
mcrl2::utilities::unordered_map::
pointer
¶typedef for typename std::allocator_traits< Allocator >::pointer
mcrl2::utilities::unordered_map::
reference
¶typedef for value_type &
mcrl2::utilities::unordered_map::
size_type
¶typedef for std::size_t
mcrl2::utilities::unordered_map::
value_type
¶typedef for std::pair< const Key, T >
mcrl2::utilities::unordered_map::
bucket_type
¶typedef for typename Set::bucket_type
mcrl2::utilities::unordered_map::
Set
¶typedef for unordered_set< value_type, PairHash, PairEquals, allocator_type, ThreadSafe, Resize >
mcrl2::utilities::unordered_map::
allow_transparent
¶True iff the hash and equals functions allow transparent lookup,.
mcrl2::utilities::unordered_map::
m_set
¶The underlying set storing <key, value> pairs.
at
(const key_type &key) const¶Provides access to the value associated with the given key.
begin
()begin
() constbegin
(size_type n)¶Returns: An iterator to the elements in the given bucket with index n.
begin
(size_type n) const¶bucket
(const key_type &key) const noexcept¶bucket_count
() const noexcept¶Returns: The number of buckets.
bucket_size
(size_type n) const noexcept¶capacity
()¶Number of elements that can be stored before rehash.
Nonstandard.
cbegin
() constcbegin
(size_type n) const¶cend
() constcend
(size_type n) const¶clear
()Clears the content.
count
(const key_type &key) constReturns: The number of elements matching the specified key.
emplace
(Args&&... args)emplace_hint
(const_iterator, Args&&... args)empty
() const noexceptReturns: True iff the set is empty.
end
()end
() constend
(size_type n)¶end
(size_type n) const¶erase
(const key_type &key)Erases elements.
erase
(const_iterator it)find
(const Args&... args)Returns: Element with the specified key.
find
(const Args&... args) constget_allocator
() const noexcept¶Returns: A reference to the local node allocator.
get_allocator
() noexcept¶hash_function
() const¶insert
(const value_type &pair)Inserts elements.
insert
(const_iterator hint, const value_type &pair)insert_or_assign
(const Key &k, M &&obj)insert_or_assign
(const_iterator, const Key &k, M &&obj)insert_or_assign
(const_iterator, Key &&k, M &&obj)insert_or_assign
(Key &&k, M &&obj)key_eq
() const¶load_factor
() const¶max_bucket_count
() const noexcept¶max_load_factor
() const¶max_load_factor
(float factor)¶max_size
() const noexceptoperator[]
(const key_type &key)¶Provides access to the value associated with the given key, constructs a default value whenever the key was undefined.
rehash
(size_type number_of_buckets)¶Resize the number buckets to at least number_of_buckets.
reserve
(size_type count)¶Resizes the set to the given number of elements.
size
() constReturns: The number of elements.
try_emplace
(const_iterator, const Key &k, Args&&... args)try_emplace
(const_iterator, Key &&k, Args&&... args)unordered_map
()unordered_map
(std::size_t initial_size, const hasher &hash = hasher(), const key_equal &equals = key_equal())¶Constructs an unordered_map that can store initial_size number of elements before resizing.