matchit.cpp
matchit.cpp copied to clipboard
match(it): A lightweight single-header pattern-matching library for C++17 with macro-free APIs.
This is similar to ref (mut) patterns in rust.
As a conan user I wanted to have this library awailable via [conan-center-index](https://github.com/conan-io/conan-center-index). So I made a [PR](https://github.com/conan-io/conan-center-index/pull/12710) in there.
https://godbolt.org/z/41KWjcaEx
In C++23, there was a new type `std::expected` which is essentially Rust's `Result`. I've tried to add some functionality to support it, and it seems to work. Should I submit...
unique_ptr and make_shared need ` #include `