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

Return (a copy of) the allocator used to supply memory for this `function`&period;

== Synopsis

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

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

== Return Value

copy of the allocator used to supply memory


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