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

`setCopyMoveState` overloads

== Synopses

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

Set the object at the specified `tracker` address to the specified `state`&period; This function is an ADL customization point used by `CopyMoveState&colon;&colon;set(obj, state)`&period; The behavior is undefined unless `CopyMoveState&colon;&colon;isValid(state)` is `true`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsltf/setCopyMoveState-0e.adoc[setCopyMoveState](
    xref:BloombergLP/bsltf/CopyMoveTracker.adoc[CopyMoveTracker]* tracker,
    xref:BloombergLP/bsltf/CopyMoveState-0e/Enum.adoc[CopyMoveState::Enum] state);
----

[.small]#xref:BloombergLP/bsltf/setCopyMoveState-0e.adoc[_» more&period;&period;&period;_]#

Set the copy&sol;move state of object at the specified `obj` address to the specified `state`&period; This function is an ADL customization point used by `CopyMoveState&colon;&colon;set(obj, state)`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsltf/setCopyMoveState-05.adoc[setCopyMoveState](
    xref:BloombergLP/bsltf/MovableAllocTestType.adoc[MovableAllocTestType]* obj,
    xref:BloombergLP/bsltf/CopyMoveState-0e/Enum.adoc[CopyMoveState::Enum] state);
----

[.small]#xref:BloombergLP/bsltf/setCopyMoveState-05.adoc[_» more&period;&period;&period;_]#

Do nothing&period; Called from `CopyMoveState&colon;&colon;set`, this default implementation is called if a customized `getCopyMoveState` is not found via ADL for a specific type&period; Note that this overload is defined such that, if `setCopyMoveState` is customized for a type, the customization is &quot;inherited&quot; by derived types&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsltf/setCopyMoveState-0f.adoc[setCopyMoveState](
    void*,
    xref:BloombergLP/bsltf/CopyMoveState-0e/Enum.adoc[CopyMoveState::Enum]);
----

[.small]#xref:BloombergLP/bsltf/setCopyMoveState-0f.adoc[_» more&period;&period;&period;_]#


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