matchit.cpp

    match(it): A lightweight single-header pattern-matching library for C++17 with macro-free APIs.

    Language: cpp

    Author: Fredy Mönch (@thefredy)

    113 stars · 447 views

    Files

    • Closed-Class-Hierarchy.cpp (cpp)
    • Proposal.md (markdown)
    • README.md (markdown)
    • Extractor-Pattern.cpp (cpp)
    • Rest-pattern.cpp (cpp)
    • contains.cpp (cpp)
    • CODE_OF_CONDUCT.md (markdown)
    • Destructuring-Enums.cpp (cpp)
    • Matching-Integrals.cpp (cpp)
    • Matching-Variants.cpp (cpp)
    • customAsPointer.cpp (cpp)
    • CodeCoverage.cmake (plaintext)
    • REFERENCE.md (markdown)
    • From-Pattern-Matching-Proposal-to-matchit.md (markdown)
    • cmake ()
    • Sanitizers.cmake (plaintext)
    • develop ()
    • matchit ()
    • From-Rust-to-matchit.md (markdown)
    • include ()
    • sample ()
    • core.h (c)
    • expression.h (c)
    • matchit.h (c)
    • Identifier-pattern.cpp (cpp)
    • LICENSE (plaintext)
    • Predicate-based-Discriminator.cpp (cpp)
    • checkAndlogLarge.cpp (cpp)
    • While-conditional-let-Loops.cpp (cpp)
    • Matching-Strings.cpp (cpp)
    • at-Bindings.cpp (cpp)
    • Slice-pattern.cpp (cpp)
    • Wildcard-pattern.cpp (cpp)
    • FetchGTest.cmake (plaintext)
    • Structured-Binding-Pattern.cpp (cpp)
    • Extra-Conditionals-with-Match-Guards.cpp (cpp)
    • Literal-pattern.cpp (cpp)
    • Ignoring-Parts-of-a-Value-with-a-Nested-_.cpp (cpp)
    • Matching-Polymorphic-Types.cpp (cpp)
    • Matching-Tuples.cpp (cpp)
    • Terminate.cpp (cpp)
    • Reference-pattern.cpp (cpp)
    • patterns.h (c)
    • utility.h (c)
    • matchit.h (c)
    • Conditional-if-let-Expressions.cpp (cpp)
    • Dereference-Pattern.cpp (cpp)
    • Destructuring-Nested-Structs-and-Enums.cpp (cpp)
    • Enum-Class.cpp (cpp)
    • Evaluating-Expression-Trees.cpp (cpp)
    • Matcher-within.cpp (cpp)
    • Range-pattern.cpp (cpp)
    • Red-black-Tree-Rebalancing.cpp (cpp)
    • Struct-pattern.cpp (cpp)
    • Tuple-struct-pattern.cpp (cpp)
    • clip.cpp (cpp)
    • ATTRIBUTION.md (markdown)

    Loading code snippet…