beman::optional::optional<T&>::and_then

Applies a function to the stored value if there is one.

Synopsis

Declared in <beman/optional/optional.hpp>
template<class F>
constexpr
auto
and_then(F&& f) const;


Return Value

auto

Template Parameters

Name Description
F

Parameters

Name Description
f

Created with MrDocs