[#bsl-set-0d-2constructor-097]
= xref:bsl.adoc[bsl]::xref:bsl/set-0d.adoc[set]::set
:relfileprefix: ../../
:mrdocs:

Create a set having the same value as the specified `original`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
set(xref:bsl/set-0d.adoc[set] const& original);
----

== Description

Use a copy of `original&period;key&lowbar;comp()` to order the keys contained in this set&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;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| set whose value is copied
|===


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