awesome-cpp
awesome-cpp copied to clipboard
Add Patternia — a header-only compile-time pattern matching DSL for C++
Patternia brings Rust-style match expressions to C++ with a concise and expressive DSL:
match(cmd)
.when(ci_value("start") >> "starting")
.when(ci_value("stop") >> "stopping")
.otherwise("unknown");