[#BloombergLP-bslma-AllocatorUtil-adapt-0f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/AllocatorUtil.adoc[AllocatorUtil]::adapt :relfileprefix: ../../../ :mrdocs: Return the `bslma::Allocator` pointer held by `from`. == Synopsis Declared in `<bslma_allocatorutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_TYPE> static xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* adapt(xref:bsl/allocator-0df.adoc[bsl::allocator<t_TYPE>] const& from); ---- == Return Value the `bslma::Allocator` pointer held by `from` == Parameters [cols="1,4"] |=== | Name| Description | *from* | `bsl::allocator` to adapt |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#