BloombergLP::bsltf::ArgumentType::set

Set this object's value and copy/move state.

Synopsis

Declared in <bsltf_argumenttype.h>

void
set(
    int value,
    CopyMoveState::Enum state);

Description

Set this object to the specified value having the specified copy/move state. The behavior is undefined if the arguments would violate any class invariants, i.e., an invalid copy/move state, a value less than -1, or a moved-from state with value other than -1.

Parameters

NameDescription
valuenew integral value for this object
statenew copy/move state for this object