BloombergLP::bdlc::FlatHashSet::FlatHashSet

Create an empty set with at least the specified capacity, hash, and equal predicate; optionally use basicAllocator.

Synopsis

Declared in <bdlc_flathashset.h>

FlatHashSet(
    std::size_t capacity,
    HASH const& hash,
    EQUAL const& equal,
    bslma::Allocator* basicAllocator = 0);

Parameters

NameDescription
capacityminimum initial capacity of the underlying array
hashhash functor used by this set
equalkey-equality predicate used by this set
basicAllocatormemory allocator; null uses the default