bsl::hash_map::hash_map

Create a hash map with the specified bucket count, hasher, and allocator.

Synopsis

Declared in <bslstp_hashmap.h>

hash_map(
    size_type __n,
    hasher const& __hf,
    allocator_type const& __a);

Parameters

NameDescription
__nminimum number of buckets to create
__hfhash functor
__aallocator used to supply memory