Provide a facade allocator that propagates adapted allocator state.
Synopsis
Declared in <bsltf_stdallocatoradaptor.h>
template<class ALLOCATOR>
class StdAllocatorAdaptor
: public ALLOCATOR
Description
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.
Base Classes
Name |
Description |
|
Types
Name |
Description |
Provide a namespace for a rebound allocator adaptor type. |
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 |
|
|
Return an adaptor for the allocator selected on container copy. |
|
Declare |
Non-Member Functions
Name |
Description |
Return whether two allocator adaptors do not compare equal. |
|
Return whether two allocator adaptors compare equal. |
Created with MrDocs