[#BloombergLP-bsltf-MoveOnlyAllocTestType]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsltf.adoc[bsltf]::MoveOnlyAllocTestType
:relfileprefix: ../../
:mrdocs:

Move&hyphen;only, allocator&hyphen;aware unconstrained attribute type for testing&period;

== Synopsis

Declared in `&lt;bsltf&lowbar;moveonlyalloctesttype&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class MoveOnlyAllocTestType;
----

== Description

This unconstrained (value&hyphen;semantic) attribute class that uses a `bslma&colon;&colon;Allocator` to supply memory and defines the type trait `bslma&colon;&colon;UsesBslmaAllocator`&period; This class is primarily provided to facilitate testing of templates by defining a simple type representative of user&hyphen;defined types having an allocator&period; See the Attributes section under DESCRIPTION in the component&hyphen;level documentation for information on the class attributes&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bsltf/MoveOnlyAllocTestType/2constructor-03.adoc[`MoveOnlyAllocTestType`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/bsltf/MoveOnlyAllocTestType/2destructor.adoc[`&#126;MoveOnlyAllocTestType`] [.small]#[destructor]#
| Destroy this object&period;
| xref:BloombergLP/bsltf/MoveOnlyAllocTestType/operator_assign.adoc[`operator&equals;`] 
| Assign to this object the value of the specified `rhs` object&period;
| xref:BloombergLP/bsltf/MoveOnlyAllocTestType/allocator.adoc[`allocator`] 
| Return the allocator used by this object to supply memory&period;
| xref:BloombergLP/bsltf/MoveOnlyAllocTestType/data.adoc[`data`] 
| Return the value of the `data` attribute of this object&period;
| xref:BloombergLP/bsltf/MoveOnlyAllocTestType/movedFrom.adoc[`movedFrom`] 
| Return the move state of this object as source of a move operation&period;
| xref:BloombergLP/bsltf/MoveOnlyAllocTestType/movedInto.adoc[`movedInto`] 
| Return the move state of this object as target of a move operation&period;
| xref:BloombergLP/bsltf/MoveOnlyAllocTestType/setData.adoc[`setData`] 
| Set the `data` attribute of this object to the specified `value`&period;
| xref:BloombergLP/bsltf/MoveOnlyAllocTestType/setMovedInto.adoc[`setMovedInto`] 
| Set the moved&hyphen;into state of this object to the specified `value`&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bsltf/debugprint-0d4.adoc[`debugprint`]
| Same as the preceding overload for this test type&period;
| xref:BloombergLP/bsltf/getMovedFrom-05.adoc[`getMovedFrom`]
| Return the move&hyphen;from state of the specified `object`&period;
| xref:BloombergLP/bsltf/getMovedInto-0f.adoc[`getMovedInto`]
| Return the move&hyphen;into state of the specified `object`&period;
| xref:BloombergLP/bsltf/operator_not_eq-02d.adoc[`operator!&equals;`]
| Return whether the two objects do not have the same value&period;
| xref:BloombergLP/bsltf/operator_eq-0f1.adoc[`operator&equals;&equals;`]
| Return whether the two objects have the same value&period;
| xref:BloombergLP/bsltf/setMovedInto-04.adoc[`setMovedInto`]
| Set the moved&hyphen;into state of the specified `object` to the specified `value`&period;
| xref:BloombergLP/bsltf/swap-06.adoc[`swap`]
| Exchange the states of two objects&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
