Invoke the specified func on the contained value and return its optional result as an rvalue.
Declared in <bslstl_optional.h>
template<class t_FUNC>
constexpr
auto
and_then(t_FUNC&& func) &&;
result of func if engaged, otherwise an empty optional
| Name | Description |
|---|---|
| func | callable invoked with the contained value or when empty |