BloombergLP::bsltf::CopyMoveState::set

Set the copy/move state of the object at obj_p to state.

Synopsis

Declared in <bsltf_copymovestate.h>

template<class TYPE>
static
void
set(
    TYPE* obj_p,
    Enum state);

Description

For the specified obj_p address and specified state, invoke setCopyMoveState(obj_p, state). Note that setCopyMoveState is an ADL customization point; if not customized for a specific TYPE, a no-op default implementation is invoked.

Parameters

NameDescription
obj_paddress of the object whose copy/move state is set
statecopy/move state to record