[#BloombergLP-bdlb-VariantImp_AllocatorBase-getAllocator] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/VariantImp_AllocatorBase.adoc[VariantImp_AllocatorBase]::getAllocator :relfileprefix: ../../../ :mrdocs: Return the allocator used by this object to supply memory. == Synopsis Declared in `<bdlb_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* getAllocator() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#