Returns an optional containing the result of applying f
to the stored value, or a default value if there is no stored value.
Synopses
Declared in <beman/optional/optional.hpp>
Returns an optional containing the result of applying f
to the stored value, or a default value if there is no stored value.
template<class F>
constexpr
auto
transform(F&& f) &;
Returns an optional containing the result of applying f
to the stored value, or a default value if there is no stored value.
template<class F>
constexpr
auto
transform(F&& f) &&;
Returns an optional containing the result of applying f
to the stored value, or a default value if there is no stored value.
template<class F>
constexpr
auto
transform(F&& f) const &;
Returns an optional containing the result of applying f
to the stored value, or a default value if there is no stored value.
template<class F>
constexpr
auto
transform(F&& f) const &&;
Return Value
-
optional
-
auto
Created with MrDocs