[#bsl-set-0d-2constructor-02] = xref:bsl.adoc[bsl]::xref:bsl/set-0d.adoc[set]::set :relfileprefix: ../../ :mrdocs: Create a set having the same value as the specified `original` object by moving (in constant time) the contents of `original` to the new set. Use a copy of `original.key_comp()` to order the keys contained in this set. The allocator associated with `original` is propagated for use in the newly‐created set. `original` is left in a valid but unspecified state. == Synopsis Declared in `<bslstl_set.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- set(xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<set>] original); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#