[#BloombergLP-bslma-AllocatorUtil-adapt-0f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/AllocatorUtil.adoc[AllocatorUtil]::adapt :relfileprefix: ../../../ :mrdocs: Return an allocator adapted from the specified `allocator`. == 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); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#