Applies a function to the stored value if there is one.
Synopsis
Declared in <beman/optional/optional.hpp>
template<class F>
constexpr
optional<std::invoke_result_t<F, T&>>
transform(F&& f);
Return Value
optional<std::invoke_result_t<F, T&>>
Template Parameters
Name |
Description |
F |
Parameters
Name |
Description |
f |
Created with MrDocs