| 24 | auto const name_age = dsVia(&Person::name, &Person::age); |
| 25 | |
| 26 | void sample2() |
| 27 | { |
| 28 | auto const value = Person{"John", 23}; |
| 29 | Id<std::string> person_name; |
| 30 | match(value)(pattern | name_age(person_name, 18 <= _ && _ <= 150) = [] {}); |
| 31 | } |
| 32 | void sample3() |
| 33 | { |
| 34 | constexpr auto x = std::make_optional(3); |