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

Name

Description

reservation_size

The number of elements to reserve capacity for.

hash

The hash function to use.

eq

The key equality comparison to use.

alloc

The allocator to use.

Created with MrDocs