absl::linked_hash_map::linked_hash_map

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

Synopsis

Declared in <absl/container/linked_hash_map.h>

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

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