absl::linked_hash_map::linked_hash_map

Constructs an empty map with the given capacity, hash, equality, and allocator.

Synopsis

Declared in <absl/container/linked_hash_map.h>

explicit
linked_hash_map(
    size_t reservation_size,
    hasher const& hash = hasher(),
    key_equal const& eq = key_equal(),
    allocator_type const& alloc = allocator_type());

Parameters

NameDescription
reservation_sizeThe number of elements to reserve capacity for.
hashThe hash function to use.
eqThe key equality comparison to use.
allocThe allocator to use.