[#BloombergLP-bsltf-WellBehavedMoveOnlyAllocTestType] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsltf.adoc[bsltf]::WellBehavedMoveOnlyAllocTestType :relfileprefix: ../../ :mrdocs: Move‐only allocating test type that records well‐behaved move state. == Synopsis Declared in `<bsltf_wellbehavedmoveonlyalloctesttype.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class WellBehavedMoveOnlyAllocTestType; ---- == Description This unconstrained (value‐semantic) attribute class that uses a `bslma::Allocator` to supply memory and defines the type trait `bslma::UsesBslmaAllocator`. This class is primarily provided to facilitate testing of templates by defining a simple type representative of user‐defined types having an allocator. See the section for information on the class attributes. == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bsltf/WellBehavedMoveOnlyAllocTestType/2constructor-02.adoc[`WellBehavedMoveOnlyAllocTestType`] [.small]#[constructor]# | Constructors | xref:BloombergLP/bsltf/WellBehavedMoveOnlyAllocTestType/2destructor.adoc[`~WellBehavedMoveOnlyAllocTestType`] [.small]#[destructor]# | Destroy this object. | xref:BloombergLP/bsltf/WellBehavedMoveOnlyAllocTestType/operator_assign.adoc[`operator=`] | Assign to this object the value of the specified `rhs` object. | xref:BloombergLP/bsltf/WellBehavedMoveOnlyAllocTestType/allocator.adoc[`allocator`] | Return the allocator used by this object to supply memory. | xref:BloombergLP/bsltf/WellBehavedMoveOnlyAllocTestType/data.adoc[`data`] | Return the value of the `data` attribute of this object. | xref:BloombergLP/bsltf/WellBehavedMoveOnlyAllocTestType/movedFrom.adoc[`movedFrom`] | Return the move state of this object as source of a move operation. | xref:BloombergLP/bsltf/WellBehavedMoveOnlyAllocTestType/movedInto.adoc[`movedInto`] | Return the move state of this object as target of a move operation. | xref:BloombergLP/bsltf/WellBehavedMoveOnlyAllocTestType/setData.adoc[`setData`] | Set the `data` attribute of this object to the specified `value`. | xref:BloombergLP/bsltf/WellBehavedMoveOnlyAllocTestType/setMovedInto.adoc[`setMovedInto`] | Set the moved‐into state of this object to the specified `value`. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bsltf/debugprint-01d.adoc[`debugprint`] | Same as the preceding overload for this test type. | xref:BloombergLP/bsltf/getMovedFrom-04.adoc[`getMovedFrom`] | Return the move‐from state of the specified `object`. | xref:BloombergLP/bsltf/getMovedInto-08.adoc[`getMovedInto`] | Return the move‐into state of the specified `object`. | xref:BloombergLP/bsltf/operator_not_eq-05f.adoc[`operator!=`] | Return `true` if the specified `lhs` and `rhs` objects do not have the same value, and `false` otherwise. | xref:BloombergLP/bsltf/operator_eq-0b99.adoc[`operator==`] | Return `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. | xref:BloombergLP/bsltf/setMovedInto-09.adoc[`setMovedInto`] | Set the moved‐into state of the specified `object` to the specified `value`. | xref:BloombergLP/bsltf/swap-0f.adoc[`swap`] | Exchange the states of the specified `a` and `b`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#