This unconstrained (value‐semantic) attribute class uses a standard allocator of (template parameter) type ALLOC to allocate memory. This class does NOT define the type trait bslma::UsesBslmaAllocator, but the trait will be true if ALLOC is convertible from bslma::Allocator * (e.g., if it is an instantiation of bsl::allocator). This class is primarily provided to facilitate testing of templates by defining a simple type representative of user‐defined types using a standard allocator. See the section for information on the class attributes.
Synopsis
Declared in <bsltf_stdalloctesttype.h>
template<class ALLOC>
class StdAllocTestType;
Type Aliases
Name |
Description |
Allocator type used by this test type (needed by |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this object. |
Assign to this object the value of the specified |
|
Return the allocator used by this object to supply memory. |
|
Return the value of the |
|
Set the |
Non-Member Functions
Name |
Description |
Same as the preceding overload for this test type. |
|
Return |
|
Return |
Created with MrDocs