#include <bsltf_stdtestallocator.h>
List of all members.
Detailed Description
template<class TYPE>
class bsltf::StdTestAllocator< TYPE >
This allocator implements the minimal interface to comply with section 20.1.5 ([lib.allocator.requirements]) of the C++03 standard. Instances of this allocator delegate their operations to a globally configured delegate allocator as C++03 compliant allocators cannot have individually identifiable state (see StdTestAllocatorConfiguration
and 'StdTestAllocatorConfigurationGuard).
See Component bsltf_stdtestallocator
Member Typedef Documentation
Constructor & Destructor Documentation
template<class TYPE>
template<class BDE_OTHER_TYPE >
Create a StdTestAllocator
object. Note that this object will compare equal to the default constructed object, because this type has no state.
Member Function Documentation
Allocate enough (properly aligned) space for the specified numElements
of type T
. The behavior is undefined unless numElements <= max_size()
.
Return memory previously at the specified address
for numElements
back to this allocator. The numElements
argument is ignored by this allocator type. The behavior is undefined unless address
was allocated using this allocator object and has not already been deallocated.
template<class TYPE>
template<class ELEMENT_TYPE , class... Args>
TBD: fix comment Copy-construct a TYPE
object at the specified address
. Do not directly allocate memory. The behavior is undefined unless address
is properly aligned for TYPE
.
template<class TYPE>
template<class ELEMENT_TYPE >
TBD: fix comment Invoke the TYPE
destructor for the object at the specified address
.
Return the address providing modifiable access to object
.
Return the address providing non-modifiable access to object
.
Return the maximum number of elements of type TYPE
that can be allocated using this allocator in a single call to the allocate
method. Note that there is no guarantee that attempts at allocating less elements than the value returned by max_size
will not throw.
The documentation for this class was generated from the following file: