Applies a function to the contained value if there is one.
<beman/optional/optional.hpp>Applies a function to the contained value if there is one.
template<class F>
constexpr
auto
and_then(F&& f) &;
» more...
Applies a function to the contained value if there is one.
template<class F>
constexpr
auto
and_then(F&& f) &&;
» more...
Applies a function to the contained value if there is one.
template<class F>
constexpr
auto
and_then(F&& f) const &;
» more...
Applies a function to the contained value if there is one.
template<class F>
constexpr
auto
and_then(F&& f) const &&;
» more...
| Name | Description |
|---|---|
| F | The type of the invocable |
| Name | Description |
|---|---|
| f | The invocable to apply to the contained value |