This class provides an unconstrained (value‐semantic) attribute type that records when move semantics have been invoked with the object instance as the source parameter. The class uses a bslma::Allocator to allocate memory and defines the type trait bslma::UsesBslmaAllocator. This class is primarily provided to facilitate testing of templates where move semantics need to be differentiated versus copy semantics. See the Attributes section under DESCRIPTION in the component‐level documentation for information on the class attributes.
Synopsis
Declared in <bsltf_movablealloctesttype.h>
class MovableAllocTestType;
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this object. |
Assignment operators |
|
Return the allocator used by this object to supply memory. |
|
Return the copy/move state of this object. |
|
Return the value of the |
|
Return the move state of this object as source of a move operation. |
|
Return the move state of this object as target of a move operation. |
|
Set the copy/move state of this object to the specified |
|
Set the |
|
Set the moved‐into state of this object to the specified |
Friends
Name |
Description |
Set the copy/move state of object at the specified |
|
Return the copy/move state of the specified |
Non-Member Functions
Name |
Description |
Same as the preceding overload for this test type. |
|
Return |
|
Return |
Created with MrDocs