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