[#bsl-stop_callback-06-get_allocator]
= xref:bsl.adoc[bsl]::xref:bsl/stop_callback-06.adoc[stop&lowbar;callback]::get&lowbar;allocator
:relfileprefix: ../../
:mrdocs:

Return the allocator used to construct this object, if any&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/stop_callback-06/allocator_type.adoc[allocator&lowbar;type]
get&lowbar;allocator() const;
----

== Description

If `t&lowbar;CALLBACK` is allocator&hyphen;aware, return the allocator used to construct this object&semi; otherwise, the return type is `void` and the definition of this function is ill&hyphen;formed&period;

== Return Value

allocator used to construct this object when allocator&hyphen;aware


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