absl::linked_hash_map::linked_hash_map

Constructors

Synopses

Declared in <absl/container/linked_hash_map.h>

Constructs an empty map.

linked_hash_map();
» more...

Constructs a map by copying another map.

linked_hash_map(linked_hash_map const& other);
» more...

Constructs a map by moving from another map.

linked_hash_map(linked_hash_map&& other) noexcept;
» more...

Constructs an empty map with the given allocator.

explicit
linked_hash_map(allocator_type const& alloc);
» more...

Constructs an empty map with the given capacity and allocator.

linked_hash_map(
    size_t reservation_size,
    allocator_type const& alloc);
» more...

Constructs a map from an initializer list.

linked_hash_map(
    std::initializer_list<value_type> init,
    allocator_type const& alloc);
» more...

Constructs a map by copying another map, using the given allocator.

linked_hash_map(
    linked_hash_map const& other,
    allocator_type const& alloc);
» more...

Constructs a map by moving from another map, using the given allocator.

linked_hash_map(
    linked_hash_map&& other,
    allocator_type const& alloc);
» more...

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);
» more...

Constructs a map from an initializer list.

linked_hash_map(
    std::initializer_list<value_type> init,
    size_t reservation_size,
    allocator_type const& alloc);
» more...

Constructs a map from the range [first, last)].

template<class InputIt>
linked_hash_map(
    InputIt first,
    InputIt last,
    allocator_type const& alloc);
» more...

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());
» more...

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);
» more...

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);
» more...

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());
» more...

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);
» more...

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());
» more...

Parameters

NameDescription
otherThe map to copy from.
allocThe allocator to use.
reservation_sizeThe number of elements to reserve capacity for.
initThe initializer list of elements.
hashThe hash function to use.
firstIterator to the first element of the range.
lastIterator past the last element of the range.
eqThe key equality comparison to use.