Returns an optional containing the result of applying f to the contained value, or an empty optional if there is no contained value.
<beman/optional/optional.hpp>
template<class F>
constexpr
auto
transform(F&& f) &&;
| Name | Description |
|---|---|
| f | An invocable to apply to the contained value. |