Constructors
Synopses
Declared in <absl/container/linked_hash_map.h>
Constructs an empty map.
Constructs a map by copying another map.
linked_hash_map(linked_hash_map const& other);
Constructs a map by moving from another map.
linked_hash_map(linked_hash_map&& other) noexcept;
Constructs an empty map with the given allocator.
explicit
linked_hash_map(allocator_type const& alloc);
Constructs an empty map with the given capacity and allocator.
linked_hash_map(
size_t reservation_size,
allocator_type const& alloc);
Constructs a map from an initializer list.
linked_hash_map(
std::initializer_list<value_type> init,
allocator_type const& alloc);
Constructs a map by copying another map, using the given allocator.
linked_hash_map(
linked_hash_map const& other,
allocator_type const& alloc);
Constructs a map by moving from another map, using the given allocator.
linked_hash_map(
linked_hash_map&& other,
allocator_type const& alloc);
Constructs an empty map with the given capacity, hash, and allocator.
linked_hash_map(
size_t reservation_size,
hasher const& hash,
allocator_type const& alloc);
Constructs a map from an initializer list.
linked_hash_map(
std::initializer_list<value_type> init,
size_t reservation_size,
allocator_type const& alloc);
Constructs a map from the range [first, last)].
template<class InputIt>
linked_hash_map(
InputIt first,
InputIt last,
allocator_type const& alloc);
Constructs an empty map with the given capacity, hash, equality, and allocator.
explicit
linked_hash_map(
size_t reservation_size,
hasher const& hash = hasher(),
key_equal const& eq = key_equal(),
allocator_type const& alloc = allocator_type());
Constructs a map from an initializer list.
linked_hash_map(
std::initializer_list<value_type> init,
size_t reservation_size,
hasher const& hash,
allocator_type const& alloc);
Constructs a map from the range [first, last)].
template<class InputIt>
linked_hash_map(
InputIt first,
InputIt last,
size_t reservation_size,
allocator_type const& alloc);
Constructs a map from an initializer list.
linked_hash_map(
std::initializer_list<value_type> init,
size_t reservation_size = 0,
hasher const& hash = hasher(),
key_equal const& eq = key_equal(),
allocator_type const& alloc = allocator_type());
Constructs a map from the range [first, last)].
template<class InputIt>
linked_hash_map(
InputIt first,
InputIt last,
size_t reservation_size,
hasher const& hash,
allocator_type const& alloc);
Constructs a map from the range [first, last)].
template<class InputIt>
linked_hash_map(
InputIt first,
InputIt last,
size_t reservation_size = 0,
hasher const& hash = hasher(),
key_equal const& eq = key_equal(),
allocator_type const& alloc = allocator_type());
Parameters
Name |
Description |
other |
The map to copy from. |
alloc |
The allocator to use. |
reservation_size |
The number of elements to reserve capacity for. |
init |
The initializer list of elements. |
hash |
The hash function to use. |
first |
Iterator to the first element of the range. |
last |
Iterator past the last element of the range. |
eq |
The key equality comparison to use. |
Created with MrDocs