[#BloombergLP-bslstl-Variant_AllocatorBase-0e-mechanism]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Variant_AllocatorBase-0e.adoc[Variant&lowbar;AllocatorBase]::mechanism
:relfileprefix: ../../../
:mrdocs:

Return a null pointer&period;

== Synopsis

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

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

== Description

Note that this method has the same return type as the allocator&hyphen;aware version so that the remainder of the implementation of `bsl&colon;&colon;variant` is abstracted with respect to whether or not the specialization is allocator&hyphen;aware&semi; this is why both methods return `bslma&colon;&colon;Allocator&ast;` instead of `bsl&colon;&colon;allocator&lt;char&gt;`&period; The returned pointer will be ignored (and not dereferenced) when passed to `bslma&colon;&colon;ConstructionUtil&colon;&colon;construct`&period;

== Return Value

null pointer


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