BloombergLP::bslstl::Optional_DataImp::value

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() &;
» more...

Return an rvalue reference to the contained value.

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

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

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

Return an rvalue reference to the contained value.

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

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