Specialization of allocator_traits for bsl::allocator.
Synopsis
Declared in <bslma_bslallocator.h>
template<class TYPE>
struct allocator_traits<allocator<TYPE>>;
Description
This struct template provides a specialization of the allocator_traits class template for bsl::allocator. This specialization is not strictly necessary, but its presence speeds up compliation by bypassing a significant amount of metaprogramming.
Type Aliases
Name |
Description |
This |
|
This |
|
This |
|
This |
|
|
|
This |
|
|
|
|
|
|
|
Rebind this allocator to the specified |
|
Rebind this allocator traits type to the specified |
|
This |
|
This |
|
This |
Static Member Functions
Name |
Description |
|
|
|
|
Deallocate the memory at |
|
Destroy the object at the specified |
|
Return the maximum number of elements allocatable by |
|
|
Return a default‐constructed allocator for container copy construction. |
Created with MrDocs