beman::optional::optional::and_then

Returns an optional containing the result of applying f to the stored value.

Synopses

Declared in <beman/optional/optional.hpp>
Returns an optional containing the result of applying f to the stored value.
template<class F>
constexpr
auto
and_then(F&& f) const &&;


» more... Returns an optional containing the result of applying f to the stored value.
template<class F>
constexpr
auto
and_then(F&& f) const &;


» more... Returns an optional containing the result of applying f to the stored value.
template<class F>
constexpr
auto
and_then(F&& f) &&;


» more... Returns an optional containing the result of applying f to the stored value.
template<class F>
constexpr
auto
and_then(F&& f) &;


» more...

Return Value

auto

Template Parameters

Name Description
F

Parameters

Name Description
f

Created with MrDocs