Returns an optional containing the stored value if it has one, or the result of applying f
to the optional if it does not.
<beman/optional/optional.hpp>
Returns an optional containing the stored value if it has one, or the result of applying f
to the optional if it does not.
template<class F>
constexpr
optional<T>
or_else(F&& f) const &;
» more...
Returns an optional containing the stored value if it has one, or the result of applying f
to the optional if it does not.
template<class F>
constexpr
optional<T>
or_else(F&& f) &&;
» more...