[#BloombergLP-bsltf-CopyMoveState-0e-set]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsltf.adoc[bsltf]::xref:BloombergLP/bsltf/CopyMoveState-0e.adoc[CopyMoveState]::set
:relfileprefix: ../../../
:mrdocs:

Set the copy&sol;move state of the object at `obj&lowbar;p` to `state`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
static
void
set(
    TYPE* obj&lowbar;p,
    xref:BloombergLP/bsltf/CopyMoveState-0e/Enum.adoc[Enum] state);
----

== Description

For the specified `obj&lowbar;p` address and specified `state`, invoke `setCopyMoveState(obj&lowbar;p, state)`&period; Note that `setCopyMoveState` is an ADL customization point&semi; if not customized for a specific `TYPE`, a no&hyphen;op default implementation is invoked&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *obj&lowbar;p*
| address of the object whose copy&sol;move state is set
| *state*
| copy&sol;move state to record
|===


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