bsl::unordered_set::unordered_set

Create an empty unordered set with the specified parameters.

Synopsis

Declared in <bslstl_unorderedset.h>

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

Description

Same as the preceding overload, using the specified allocator.

Parameters

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