#include <bsltf_stdallocatoradaptor.h>
List of all members.
Detailed Description
template<class ALLOCATOR>
class bsltf::StdAllocatorAdaptor< ALLOCATOR >
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.
See Component bsltf_stdallocatoradaptor
Member Typedef Documentation
template<class ALLOCATOR>
template<class ALLOCATOR>
template<class ALLOCATOR>
template<class ALLOCATOR>
template<class ALLOCATOR>
template<class ALLOCATOR>
template<class ALLOCATOR>
Constructor & Destructor Documentation
template<class ALLOCATOR>
Create a standard allocator adaptor object for a default-constructed allocator object of the (template parameter) type ALLOCATOR
.
template<class ALLOCATOR>
Create a standard allocator adaptor object for the specified allocator
of the (template parameter) type ALLOCATOR
.
template<class ALLOCATOR>
template<class ANY_TYPE >
Create a copy of the specified other
allocator adaptor.
template<class ALLOCATOR>
template<class ALLOCATOR>
Member Function Documentation
template<class ALLOCATOR>
template<class ALLOCATOR>
template<class ELEMENT_TYPE , class... Args>
Construct an object of the (template parameter) ELEMENT_TYPE
, by forwarding the allocator instance associated with this allocator adaptor, if appropriate, and the specified (variable number of) arguments
to the corresponding constructor of ELEMENT_TYPE
, at the specified uninitialized memory address
. The behavior is undefined unless address
is properly aligned for objects of ELEMENT_TYPE
.
template<class ALLOCATOR>
Return a reference to the non-modifiable allocator instance associated with this standard allocator adaptor.
template<class ALLOCATOR>
Return an allocator adaptor for the allocator object returned by the select_on_container_copy_construction
class method in the allocator_traits
class template for the allocator object, of the (template parameter) type ALLOCATOR
, associated with this adaptor. The allocator_traits
class template presumably delegates this call to the allocator object if such an operation is supported by the ALLOCATOR
type, or provides a suitable default behavior if such an operation is not supported.
The documentation for this class was generated from the following file: