Apply the specified func to the contained value and return the result as a const rvalue optional.
Declared in <bslstl_optional.h>
template<class t_FUNC>
constexpr
auto
transform(t_FUNC&& func) const &&;
optional containing the result of func, or empty if disengaged
| Name | Description |
|---|---|
| func | callable invoked with the contained value or when empty |