Dereference operators
Declared in <bslstl_optional.h>
Return a reference providing modifiable access to the underlying t_TYPE object. The behavior is undefined if the Optional_Base object is disengaged.
t_TYPE&
operator*() &;
» more...
Return an rvalue reference to the contained value.
t_TYPE&&
operator*() &&;
» more...
Return a reference providing non-modifiable access to the underlying t_TYPE object. The behavior is undefined if the Optional_Base object is disengaged.
t_TYPE const&
operator*() const &;
» more...
Same as the operator* overload taking const &.
t_TYPE const&&
operator*() const &&;
» more...