BloombergLP::bsltf::ConvertibleValueWrapper

This class provides a wrapper around an object of the specified (template parameter) TYPE. TYPE shall be CopyConstructible. If TYPE is a value-semantic type, then this class will also be value semantic. Objects of this type are implicitly convertible to and from objects of the specified TYPE.

Synopsis

Declared in <bsltf_convertiblevaluewrapper.h>

template<class TYPE>
struct ConvertibleValueWrapper;

Member Functions

NameDescription
ConvertibleValueWrapper [constructor]Create an object wrapping the specified value.
operator TYPE& Return a reference to the (modifiable) wrapped value.
operator TYPE const& Return a reference to the (non-modifiable) wrapped value.