[#bsl-set-0d-2constructor-00b] = xref:bsl.adoc[bsl]::xref:bsl/set-0d.adoc[set]::set :relfileprefix: ../../ :mrdocs: Create a set with the value of `original`, using `basicAllocator`. == Synopsis Declared in `<bslstl_set.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- set( xref:bsl/set-0d.adoc[set] const& original, ALLOCATOR const& basicAllocator); ---- == Description Use a copy of `original.key_comp()` to order the keys contained in this set. This method requires that the (template parameter) type `KEY` be `copy‐insertable` into this set (see {Requirements on `KEY`}). Note that a `bslma::Allocator *` can be supplied for `basicAllocator` if the (template parameter) type `ALLOCATOR` is `bsl::allocator` (the default). == Parameters [cols="1,4"] |=== | Name| Description | *original* | set whose value is copied | *basicAllocator* | allocator used to supply memory |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#