patternia

cpp pattern-matching open-source header-only cross-platform

Overview

patternia is a header-only pattern matching library for modern C++. It keeps matching expression-oriented, explicit, and zero-overhead.

Features

  • C++17+ compatible
  • Header-only — no compilation needed
  • Cross-platform support
  • Zero-overhead abstractions
  • Comprehensive test coverage
  • Full documentation at patternia.tech