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. The behavior is undefined unless this‐>hasValue() == true.

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. The behavior is undefined unless this‐>hasValue() == true.

t_TYPE const&
value() const &;

Return an rvalue reference to the contained value.

t_TYPE const&&
value() const &&;

Created with MrDocs