[#bsl-unordered_set-09-2constructor-03] = xref:bsl.adoc[bsl]::xref:bsl/unordered_set-09.adoc[unordered_set<Attribute, AttributeHash>]::unordered_set :relfileprefix: ../../ :mrdocs: Create an unordered set and insert each `value_type` object in the specified `values` initializer list, ignoring those keys having a value equivalent to that which appears earlier in the list. Optionally specify an `initialNumBuckets` indicating the initial size of the array of buckets of this container. If `initialNumBuckets` is not supplied, a single bucket is used. Optionally specify a `hashFunction` used to generate the hash values for the keys contained in this set. If `hashFunction` is not supplied, a default‐constructed object of the (template parameter) type `HASH` is used. Optionally specify a key‐equality functor `keyEqual` used to verify that two keys are equivalent. If `keyEqual` 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, a default‐constructed object of the (template parameter) type `ALLOCATOR` is used. If the type `ALLOCATOR` is `bsl::allocator` and `basicAllocator` is not supplied, the currently installed default allocator is used to supply memory. This method requires that the (template parameter) type `KEY` be `copy‐constructible` (see {Requirements on `KEY`}). Note that a `bslma::Allocator *` can be supplied for `basicAllocator` if the type `ALLOCATOR` is `bsl::allocator` (the default). == Synopsis Declared in `<bslstl_unorderedset.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<> requires bsl::IsStdAllocator<ALLOCATOR>::value unordered_set( std::initializer_list<Attribute> values, xref:bsl/allocator-0df.adoc[allocator<Attribute>] const& basicAllocator); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#