BloombergLP::bsltf::CopyMoveState::isOriginal

Return whether v is an original value, not copied or moved into.

Synopsis

Declared in <bsltf_copymovestate.h>

template<class TYPE>
static
bool
isOriginal(TYPE const& v);

Description

Return true if, for the specified v, CopyMoveState::get(v) does not include any of the e_COPIED_INTO, e_MOVED_INTO, or e_UNKNOWN bits; otherwise return false. Note that this function's return value is unaffected by the e_MOVED_FROM bit.

Return Value

true if v is an original value, else false

Parameters

NameDescription
vobject whose copy/move state is tested