| 18 | inline constexpr Is<T> is; |
| 19 | |
| 20 | auto sample1() |
| 21 | { |
| 22 | const auto x = std::make_tuple(std::string("str"), 123); |
| 23 | using namespace matchit; |
| 24 | Id<std::string> s; |
| 25 | Id<int> i; |
| 26 | match(x)(pattern | ds(app(is<std::string>, s), app(is<int>, i)) = [&] |
| 27 | { std::cout << "first " << *s << " second " << *i; }); |
| 28 | std::cout << std::endl; |
| 29 | } |
| 30 | |
| 31 | struct Email |
| 32 | { |