| 479 | |
| 480 | template <typename F> |
| 481 | constexpr auto Transform(F&& func) & { |
| 482 | using ReturnType = TMaybe<TCallResult<F, T&>>; |
| 483 | |
| 484 | if (Defined()) { |
| 485 | return ReturnType(std::forward<F>(func)(*Data())); |
| 486 | } |
| 487 | |
| 488 | return ReturnType{}; |
| 489 | } |
| 490 | |
| 491 | template <typename F> |
| 492 | constexpr auto Transform(F&& func) const& { |
no test coverage detected