[#BloombergLP-bslstl-Optional_Base-05-get_allocator]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Optional_Base-05.adoc[Optional&lowbar;Base]::get&lowbar;allocator
:relfileprefix: ../../../
:mrdocs:

Return allocator used for construction of `value&lowbar;type`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslstl/Optional_Base-05/allocator_type.adoc[Optional&lowbar;Base&lt;t&lowbar;TYPE, t&lowbar;USES&lowbar;BSLMA&lowbar;ALLOC&gt;::allocator&lowbar;type]
get&lowbar;allocator() const noexcept;
----

== Return Value

allocator used for construction of `value&lowbar;type`


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