value overloads
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() &;
» 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. The behavior is undefined unless this->hasValue() == true.
t_TYPE const&
value() const &;
» more...
Return an rvalue reference to the contained value.
t_TYPE const&&
value() const &&;
» more...