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) &;
Description
Carries out some operation on the contained object if there is one.
Return Value
optional
Parameters
| Name | Description |
|---|---|
f |
An invocable to apply to the contained value. |
Created with MrDocs