[#BloombergLP-bsltf-MovableTestType] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsltf.adoc[bsltf]::MovableTestType :relfileprefix: ../../ :mrdocs: 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. 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_movabletesttype.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class MovableTestType; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bsltf/MovableTestType/2constructor-048.adoc[`MovableTestType`] [.small]#[constructor]# | Constructors | xref:BloombergLP/bsltf/MovableTestType/2destructor.adoc[`~MovableTestType`] [.small]#[destructor]# | Destroy this object. | xref:BloombergLP/bsltf/MovableTestType/operator_assign-061.adoc[`operator=`] | Assignment operators | xref:BloombergLP/bsltf/MovableTestType/data.adoc[`data`] | Return the value of the `data` attribute of this object. | xref:BloombergLP/bsltf/MovableTestType/movedFrom.adoc[`movedFrom`] | Return the move state of this object as source of a move operation. | xref:BloombergLP/bsltf/MovableTestType/movedInto.adoc[`movedInto`] | Return the move state of this object as target of a move operation. | xref:BloombergLP/bsltf/MovableTestType/setData.adoc[`setData`] | Set the `data` attribute of this object to the specified `value`. | xref:BloombergLP/bsltf/MovableTestType/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-0d96.adoc[`debugprint`] | Same as the preceding overload for this test type. | xref:BloombergLP/bsltf/getMovedFrom-03.adoc[`getMovedFrom`] | Return the move‐from state of the specified `object`. | xref:BloombergLP/bsltf/getMovedInto-0c.adoc[`getMovedInto`] | Return the move‐into state of the specified `object`. | xref:BloombergLP/bsltf/operator_not_eq-0bb.adoc[`operator!=`] | Return `true` if the specified `lhs` and `rhs` objects do not have the same `data()` value, and `false` otherwise. Two `MovableTestType` objects do not have the same value if their `data` attributes are not the same. | xref:BloombergLP/bsltf/operator_eq-0eb.adoc[`operator==`] | Return `true` if the specified `lhs` and `rhs` objects have the same `data()` value, and `false` otherwise. Two `MovableTestType` objects have the same value if their `data` attributes are the same. TBD: think about the behavior when specified on an object that was moved‐from on this as well as other functions/methods if appropriate. | xref:BloombergLP/bsltf/setMovedInto-00.adoc[`setMovedInto`] | Set the moved‐into state of the specified `object` to the specified `value`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#