| 435 | |
| 436 | template <typename F> |
| 437 | constexpr auto AndThen(F&& func) & { |
| 438 | using ReturnType = TCallResult<F, T&>; |
| 439 | |
| 440 | if (Defined()) { |
| 441 | return std::forward<F>(CheckReturnsMaybe<T&>(func))(*Data()); |
| 442 | } |
| 443 | |
| 444 | return ReturnType{}; |
| 445 | } |
| 446 | |
| 447 | template <typename F> |
| 448 | constexpr auto AndThen(F&& func) const& { |
no test coverage detected