[#BloombergLP-bslma-AllocatorUtil-adapt-08] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/AllocatorUtil.adoc[AllocatorUtil]::adapt :relfileprefix: ../../../ :mrdocs: `adapt` overloads == Synopses Declared in `<bslma_allocatorutil.h>` Return `from` adapted for initializing another AA object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_ALLOC> static t_ALLOC xref:BloombergLP/bslma/AllocatorUtil/adapt-03.adoc[adapt](t_ALLOC const& from) requires ! IsDerivedFromBslAllocator<t_ALLOC>::value; ---- [.small]#xref:BloombergLP/bslma/AllocatorUtil/adapt-03.adoc[_» more..._]# Return the `bslma::Allocator` pointer held by `from`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_TYPE> static xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* xref:BloombergLP/bslma/AllocatorUtil/adapt-0f.adoc[adapt](xref:bsl/allocator-0df.adoc[bsl::allocator<t_TYPE>] const& from); ---- [.small]#xref:BloombergLP/bslma/AllocatorUtil/adapt-0f.adoc[_» more..._]# == Return Value * `from` unchanged * the `bslma::Allocator` pointer held by `from` == Parameters [cols="1,4"] |=== | Name| Description | *from* | allocator to adapt |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#