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