[#bsl-set-0d-get_allocator]
= xref:bsl.adoc[bsl]::xref:bsl/set-0d.adoc[set]::get&lowbar;allocator
:relfileprefix: ../../
:mrdocs:

Return (a copy of) the allocator used for memory allocation by this set&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/set-0d/allocator_type.adoc[set&lt;KEY, COMPARATOR, ALLOCATOR&gt;::allocator&lowbar;type]
get&lowbar;allocator() const noexcept;
----

== Return Value

copy of the allocator used by this set


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