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) &;

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

template<class F>
constexpr
auto
and_then(F&& f) &&;

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

template<class F>
constexpr
auto
and_then(F&& f) const &;

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

template<class F>
constexpr
auto
and_then(F&& f) const &&;

Return Value

auto

Created with MrDocs