[#bsl-set-0d-get_allocator] = xref:bsl.adoc[bsl]::xref:bsl/set-0d.adoc[set]::get_allocator :relfileprefix: ../../ :mrdocs: Return (a copy of) the allocator used for memory allocation by this set. == Synopsis Declared in `<bslstl_set.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/set-0d/allocator_type.adoc[set<KEY, COMPARATOR, ALLOCATOR>::allocator_type] get_allocator() const noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#