Return a reference providing non-modifiable access to the underlying t_TYPE object if true == has_value() and throw bsl::bad_optional_access otherwise.
t_TYPE
true == has_value()
bsl::bad_optional_access
Declared in <bslstl_optional.h>
<bslstl_optional.h>
t_TYPE const& value() const &;