bsl::unordered_set::unordered_set

Create an empty unordered set with the specified bucket count.

Synopsis

Declared in <bslstl_unorderedset.h>

explicit
unordered_set(
    size_type initialNumBuckets,
    HASH const& hashFunction = HASH(),
    EQUAL const& keyEqual = EQUAL(),
    ALLOCATOR const& basicAllocator = ALLOCATOR());

Description

Same as the preceding overload, using the specified bucket count and hash/equality functors.

Parameters

NameDescription
initialNumBucketsinitial number of buckets
hashFunctionhash function
keyEqualkey-equality functor
basicAllocatorallocator used to supply memory