bsl::unordered_map::unordered_map

Create an empty unordered map with hash and allocator.

Synopsis

Declared in <bslstl_unorderedmap.h>

unordered_map(
    size_type initialNumBuckets,
    HASH const& hashFunction,
    ALLOCATOR const& basicAllocator);

Description

Same as the preceding overload.

Parameters

NameDescription
initialNumBucketsinitial number of buckets
hashFunctionhash functor
basicAllocatorallocator used to supply memory