| 4 | using namespace matchit; |
| 5 | |
| 6 | void sample1() |
| 7 | { |
| 8 | // Fixed size |
| 9 | constexpr auto arr = std::array<int32_t, 3>{1, 2, 3}; |
| 10 | Id<int32_t> a, b, c; |
| 11 | match(arr)(pattern | ds(1, _, _) = expr("starts with one"), |
| 12 | pattern | ds(a, b, c) = expr("starts with something else")); |
| 13 | } |
| 14 | |
| 15 | void sample2() |
| 16 | { |