Patternia Documentation¶
A modern C++ pattern matching DSL
Patternia is a modern C++ pattern-matching DSL designed to make dispatch logic clear, expressive, and type-safe — without sacrificing performance or compilation efficiency.
Navigation¶
Tutorials¶
- From Control Flow to Pattern Matching - Start here if you are new to pattern matching
- Pattern Matching in Other Languages - For readers familiar with pattern matching
- Custom Predicate Guards - Using guards as part of case definition
- Example - Policy Constraint Matching - From ad-hoc rules to declarative policies
- Example - Geometric Constraint Matching - From numeric conditions to declarative shape constraints
Quick Start¶
- Getting Started - Complete examples from basics to advanced
- Installation - How to integrate Patternia into your project
API Reference¶
- API Documentation - Complete API reference for all patterns and functions
Project Information¶
- Releases - Version update history
System Requirements¶
- C++ Standard: C++17 or later
- Compilers: GCC ≥11, Clang ≥12, MSVC ≥2019
- Platforms: Linux, Windows, macOS
Make logical structure explicit, make C++ code more elegant