Create an empty unordered set with the specified bucket count.
Declared in <bslstl_unorderedset.h>
explicit
unordered_set(
size_type initialNumBuckets,
HASH const& hashFunction = HASH(),
EQUAL const& keyEqual = EQUAL(),
ALLOCATOR const& basicAllocator = ALLOCATOR());
Same as the preceding overload, using the specified bucket count and hash/equality functors.
| Name | Description |
|---|---|
| initialNumBuckets | initial number of buckets |
| hashFunction | hash function |
| keyEqual | key-equality functor |
| basicAllocator | allocator used to supply memory |