Component-private utility for adapting allocator objects (see specializations).
Declared in <bslma_constructionutil.h>
template<
class TYPE,
bool HAS_ALLOC_TYPE = HasAllocatorType<TYPE>::value,
bool IS_BSLMA_AA = UsesBslmaAllocator<TYPE>::value>
struct ConstructionUtil_AllocAdaptorUtil;
| Name | Description |
|---|---|
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. |
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 *. |
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. |