[#BloombergLP-bslma-ConstructionUtil_AllocAdaptorUtil-06] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::ConstructionUtil_AllocAdaptorUtil :relfileprefix: ../../ :mrdocs: Component‐private utility for adapting allocator objects (see specializations). == Synopsis Declared in `<bslma_constructionutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class TYPE, bool HAS_ALLOC_TYPE = HasAllocatorType<TYPE>::value, bool IS_BSLMA_AA = UsesBslmaAllocator<TYPE>::value> struct ConstructionUtil_AllocAdaptorUtil; ---- == Specializations [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslma/ConstructionUtil_AllocAdaptorUtil-0a.adoc[`ConstructionUtil_AllocAdaptorUtil<TYPE, false, false>`] | This utility class template provides a static `adapt` method that adapts an allocator object to the type expected by `TYPE`. This primary template is instantiated only for a non‐AA `TYPE`; such types do not expect an allocator, so no `adapt` method is defined. | xref:BloombergLP/bslma/ConstructionUtil_AllocAdaptorUtil-0b.adoc[`ConstructionUtil_AllocAdaptorUtil<TYPE, false, true>`] | This utility class template provides a static `adapt` method that adapts an allocator object to the type expected by `TYPE`. This partial specialization is instantiated for types that expect an allocator of type `bslma::Allocator *`. | xref:BloombergLP/bslma/ConstructionUtil_AllocAdaptorUtil-05.adoc[`ConstructionUtil_AllocAdaptorUtil<TYPE, true, IS_BSLMA_AA>`] | This utility class template provides a static `adapt` method that adapts an allocator object to the type expected by `TYPE`. This partial specialization is instantiated for types that expect an allocator of type `TYPE::allocator_type`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#