f
to the stored value, or a default value if there is no stored value.
<beman/optional/optional.hpp>
template<class F>
constexpr
auto
transform(F&& f) &;
Carries out some operation on the stored object if there is one.
Name | Description |
---|---|
F |
Name | Description |
---|---|
f |