[#bsl-function-0a-allocator]
= xref:bsl.adoc[bsl]::xref:bsl/function-0a.adoc[function]::allocator
:relfileprefix: ../../
:mrdocs:

Return `get&lowbar;allocator()&period;mechanism()`&period; Note that this function exists for BDE compatibility and is not part of the C&plus;&plus; Standard Library&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]*
allocator() const noexcept;
----

== Description

DEPRECATED&colon; Use `get&lowbar;allocator()` instead&period;


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