[#bsl-hash_set-2constructor-0a1]
= xref:bsl.adoc[bsl]::xref:bsl/hash_set.adoc[hash&lowbar;set]::hash&lowbar;set
:relfileprefix: ../../
:mrdocs:

Copy&hyphen;construct a hash set using the specified allocator&period;

== Synopsis

Declared in `&lt;bslstp&lowbar;hashset&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
hash&lowbar;set(
    xref:bsl/hash_set.adoc[&lowbar;Self] const& &lowbar;&lowbar;x,
    xref:bsl/hash_set/allocator_type.adoc[allocator&lowbar;type] const& &lowbar;&lowbar;a);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;x*
| hash set whose elements are copied
| *&lowbar;&lowbar;a*
| allocator used to supply memory
|===


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