beman::optional::optional::or_else

Returns an optional containing the stored value if it has one, or the result of applying f to the optional if it does not.

Synopsis

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

Return Value

Created with MrDocs