| 30 | match(value)(pattern | name_age(person_name, 18 <= _ && _ <= 150) = [] {}); |
| 31 | } |
| 32 | void sample3() |
| 33 | { |
| 34 | constexpr auto x = std::make_optional(3); |
| 35 | Id<int32_t> y; |
| 36 | match(x)( |
| 37 | // No need to worry about y's type, by ref or by value is automatically |
| 38 | // managed by `match(it)` library. |
| 39 | pattern | some(y) = [] {}); |
| 40 | } |
| 41 | |
| 42 | void sample4() |
| 43 | { |