| 674 | std::enable_if_t<details::is_optional<Return>::value, bool> = true |
| 675 | > |
| 676 | constexpr auto and_then(F&& f) & |
| 677 | { |
| 678 | if (*this) |
| 679 | return dlib::invoke(std::forward<F>(f), **this); |
| 680 | else |
| 681 | return Return{}; |
| 682 | } |
| 683 | |
| 684 | template < |
| 685 | class F, |