[#bsl-set-0d-2constructor-0e] = xref:bsl.adoc[bsl]::xref:bsl/set-0d.adoc[set]::set :relfileprefix: ../../ :mrdocs: Create an empty set using the specified `comparator` and `basicAllocator`. == Synopsis Declared in `<bslstl_set.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit set( COMPARATOR const& comparator, ALLOCATOR const& basicAllocator = ALLOCATOR()); ---- == Parameters [cols="1,4"] |=== | Name| Description | *comparator* | key‐comparison functor | *basicAllocator* | allocator used to supply memory |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#