BloombergLP::bslstl::Variant_DataImp::value

value overloads

Synopses

Declared in <bslstl_variant.h>

Return a reference to the stored t_TYPE object. The behavior is undefined unless this object contains a t_TYPE object (i.e., this object is currently managing the active alternative of a bsl::variant object).

constexpr
t_TYPE&
value() &;
» more...

Return an rvalue reference to the stored t_TYPE object. The behavior is undefined unless this object contains a t_TYPE object (i.e., this object is currently managing the active alternative of a bsl::variant object).

constexpr
t_TYPE&&
value() &&;
» more...

Return a const reference to the stored t_TYPE object. The behavior is undefined unless this object contains a t_TYPE object (i.e., this object is currently managing the active alternative of a bsl::variant object).

constexpr
t_TYPE const&
value() const &;
» more...

Return an rvalue reference to the stored t_TYPE object.

constexpr
t_TYPE const&&
value() const &&;
» more...