value overloads

Synopses

Declared in <bslstl_variant.h>

Return a reference to the stored t_TYPE object.

constexpr
t_TYPE&
value() &;

Return an rvalue reference to the stored t_TYPE object.

constexpr
t_TYPE&&
value() &&;

Return a const reference to the stored t_TYPE object.

constexpr
t_TYPE const&
value() const &;

Return an rvalue reference to the stored t_TYPE object.

constexpr
t_TYPE const&&
value() const &&;

Return Value

  • reference to the stored t_TYPE object

  • rvalue reference to the stored t_TYPE object

  • const reference to the stored t_TYPE object

  • const rvalue reference to the stored t_TYPE object

Created with MrDocs