This specialization is for allocators expressed as a pointer to class derived from bsl::memory_resource. The base class will be bsl::allocator_traits<bsl::allocator<t_TYPE>> if t_MEMORY_RSRC is derived from bsl::Allocator; otherwise the base class will be bsl::allocator_traits<bsl::polymorphic_allocator<t_TYPE>>.
Synopsis
Declared in <bslma_allocatorutil.h>
template<
class t_MEMORY_RSRC,
class t_TYPE>
struct AllocatorUtil_Traits<t_MEMORY_RSRC*, t_TYPE>
: bsl::allocator_traits<bsl::conditional<bsl::is_convertible<t_MEMORY_RSRC *, bslma::Allocator *>::value, bsl::allocator<t_TYPE>, bsl::polymorphic_allocator<t_TYPE>>::type>
Base Classes
Name |
Description |
This class supports the complete interface of the C++11 |
Type Aliases
Name |
Description |
This |
|
This |
|
Const void pointer type for the allocator. |
|
This |
|
Identical to, or derived from |
|
This |
|
|
Identical to, or derived from |
|
Identical to, or derived from |
Identical to, or derived from |
|
Rebind this allocator to the specified |
|
Rebind this allocator traits type to the specified |
|
This |
|
This |
|
This |
Static Member Functions
Name |
Description |
|
|
Construct an object of (template parameter) type |
|
Invoke |
|
Destroy the object of (template parameter) type |
|
Return the largest number of |
|
|
Return a copy of the allocator that should be used to copy‐ construct one container from another container whose allocator is the specified |
Created with MrDocs