Namespace for utility functions on allocator‐aware types

Synopsis

Declared in <bslma_aatypeutil.h>

class AATypeUtil;

Static Member Functions

Name

Description

getAdaptedAllocator

getAdaptedAllocator overloads

getAllocatorFromSubobject

getAllocatorFromSubobject overloads

getBslAllocator

Return the allocator for the specified object, converted to bsl::allocator<char>. This function will not participate in overload resolution unless TYPE is pmr‐AA, bsl‐AA, or legacy‐AA. In the case of a pmr‐AA TYPE, the behavior is undefined unless object was originally constructed constructed with an allocator value holding a pointer to a memory_resource whose dynamic type is derived from bslma::Allocator.

getNativeAllocator

getNativeAllocator overloads

haveEqualAllocators

haveEqualAllocators overloads

Created with MrDocs