Contourcpp is a library that ports many fuctional programming patterns inspired from Rust to C++, with additional twists to them. It is header-only, so you can copy paste it to your project with ease.
I will be updating this README in a bit to have additional documentation. Currently it's just the maybe macro described in my latest blog post. Pull requests for ergonomic refinements are welcome, and feel free to open an issue if you would like to propose an extension to the existing set of features.
maybemacro (done)- Fat enums (with C++26 reflection if possible)
- Typestate fluent builder (with C++26 reflection if possible)
- Port of Rust's
match - Lifetimes
- Utilities related to C++26 contracts?
If you wish to support me, feel free to send a donation through one of the links listed in my website.
The code present in this repository is written by me unless otherwise stated, and it is licensed under the MIT License