[#bsl-allocator-069-2constructor-0b] = xref:bsl.adoc[bsl]::xref:bsl/allocator-069.adoc[allocator<Attribute>]::allocator :relfileprefix: ../../ :mrdocs: Convert a `bslma::Allocator` pointer to an `allocator` object that forwards allocation calls to the object pointed to by the specified `mechanism`. If `mechanism` is 0, then the currently installed default allocator is used instead. Postcondition: ` this‐>mechanism() == bslma::Default::allocator(mechanism) ` == Synopsis Declared in `<bslma_bslallocator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- allocator(xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]* mechanism); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#