This class template provides the facade of an allocator but mostly delegates operations to the allocator object (of template parameter type) it adapts, except that it enables the propagation of the (stateful) allocator object to constructed elements, if appropriate.
Synopsis
Declared in <bsltf_stdallocatoradaptor.h>
template<class ALLOCATOR>
class StdAllocatorAdaptor
: public ALLOCATOR
Base Classes
Name |
Description |
|
Types
Name |
Description |
This nested |
Type Aliases
Name |
Description |
Alias for |
|
Alias for |
|
Alias for |
|
Alias for |
|
Alias for |
|
Alias for |
|
Alias for |
Member Functions
Name |
Description |
|
Create a standard allocator adaptor object for a default‐constructed allocator object of the (template parameter) type |
|
Create a copy of the specified |
|
Create a copy of the specified |
|
Create a standard allocator adaptor object from the null pointer constant. |
|
Create a standard allocator adaptor object for the specified |
Assign to this object the value of the specified |
|
Return a reference to the non‐modifiable allocator instance associated with this standard allocator adaptor. |
|
Construct an object of the (template parameter) |
|
|
Return an allocator adaptor for the allocator object returned by the |
|
Declare |
Non-Member Functions
Name |
Description |
Return |
|
Return |
Created with MrDocs