[#BloombergLP-bdlc-FlatHashSet-2constructor-05aa] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet]::FlatHashSet :relfileprefix: ../../../ :mrdocs: Create a `FlatHashSet` object initialized by insertion of the specified `values`. Optionally specify a `capacity` indicating the minimum initial size of the underlying array of entries of this container. If `capacity` is not supplied or is 0, no memory is allocated. Optionally specify a `hash` functor used to generate hash values associated with the elements in this container. If `hash` is not supplied, a default‐constructed object of the (template parameter) type `HASH` is used. Optionally specify an equality functor `equal` used to verify that two elements are equivalent. If `equal` is not supplied, a default‐constructed object of the (template parameter) type `EQUAL` is used. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is not supplied or is 0, the currently installed default allocator is used. Note that if a member of `values` has a key equivalent to an earlier member, the later member will not be inserted. == Synopsis Declared in `<bdlc_flathashset.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- FlatHashSet( bsl::initializer_list<KEY> values, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#