value overloads

Synopses

Declared in <bslstl_optional.h>

Return the value_type object in d_buffer with const qualification adjusted to match that of t_TYPE.

t_TYPE&
value() &;

Return an rvalue reference to the contained value.

t_TYPE&&
value() &&;

Return the value_type object in d_buffer with const qualification adjusted to match that of t_TYPE.

t_TYPE const&
value() const &;

Return an rvalue reference to the contained value.

t_TYPE const&&
value() const &&;

Return Value

  • reference providing modifiable access to the contained value

  • rvalue reference providing modifiable access to the contained value

  • reference providing non‐modifiable access to the contained value

  • rvalue reference providing non‐modifiable access to the contained value

Created with MrDocs