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() &;
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() &&;
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 &;
Return an rvalue reference to the stored t_TYPE object.
constexpr
t_TYPE const&&
value() const &&;
Created with MrDocs