[#bsl-unordered_set-02a-2constructor-03f]
= xref:bsl.adoc[bsl]::xref:bsl/unordered_set-02a.adoc[unordered&lowbar;set&lt;ManagedAttribute, AttributeHash&gt;]::unordered&lowbar;set
:relfileprefix: ../../
:mrdocs:

Create an unordered set having the same value as the specified `original` object&period; Use a copy of `original&period;hash&lowbar;function()` to generate hash values for the keys contained in this set&period; Use a copy of `original&period;key&lowbar;eq()` to verify that two keys are equivalent&period; Use the allocator returned by &grave;bsl&colon;&colon;allocator&lowbar;traits&lt;ALLOCATOR&gt;&colon;&colon; select&lowbar;on&lowbar;container&lowbar;copy&lowbar;construction(original&period;get&lowbar;allocator())&grave; to allocate memory&period; This method requires that the (template parameter) type `KEY` be `copy&hyphen;insertable` into this set (see &lcub;Requirements on `KEY`&rcub;)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unordered&lowbar;set(xref:bsl/unordered_set-0d2d.adoc[unordered&lowbar;set&lt;ManagedAttribute, AttributeHash&gt;] const& original);
----


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