Same as the preceding overload, also using the specified hash.

Synopsis

Declared in <bdlc_flathashset.h>

FlatHashSet(
    bsl::initializer_list<KEY> values,
    std::size_t capacity,
    HASH const& hash,
    bslma::Allocator* basicAllocator = 0);

Parameters

Name

Description

values

initializer list of elements to insert

capacity

minimum initial capacity of the underlying array

hash

hash functor used by this set

basicAllocator

memory allocator; null uses the default

Created with MrDocs