[#bsl-list-054-get_allocator]
= xref:bsl.adoc[bsl]::xref:bsl/list-054.adoc[list]::get&lowbar;allocator
:relfileprefix: ../../
:mrdocs:

Return a copy of the allocator used for memory allocation by this list&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
ALLOCATOR
get&lowbar;allocator() const noexcept;
----

== Return Value

copy of the allocator used by this list


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