[#bsl-unordered_set-0d2d-2constructor-025]
= xref:bsl.adoc[bsl]::xref:bsl/unordered_set-0d2d.adoc[unordered&lowbar;set]::unordered&lowbar;set
:relfileprefix: ../../
:mrdocs:

Create an unordered set from the specified `values` initializer list&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;unorderedset&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class = void,
    class = void&gt;
requires std&colon;&colon;is&lowbar;invocable&lowbar;v&lt;HASH, const KEY &amp;&gt; &amp;&amp; bsl&colon;&colon;IsStdAllocator&lt;ALLOCATOR&gt;&colon;&colon;value
unordered&lowbar;set(
    std::initializer&lowbar;list&lt;KEY&gt; values,
    xref:bsl/unordered_set-0d2d/size_type.adoc[size&lowbar;type] initialNumBuckets,
    HASH const& hashFunction,
    ALLOCATOR const& basicAllocator);
----

== Description

Same as the preceding overload, using the specified allocator&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *values*
| initializer list of values
| *initialNumBuckets*
| initial number of buckets
| *hashFunction*
| hash function
| *basicAllocator*
| allocator used to supply memory
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
