MCPcopy Create free account
hub / github.com/BowenFu/matchit.cpp / App

Class App

develop/matchit/patterns.h:539–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537
538 template <typename Unary, typename Pattern>
539 class App
540 {
541 public:
542 constexpr App(Unary &&unary, Pattern const &pattern)
543 : mUnary{std::forward<Unary>(unary)}, mPattern{pattern} {}
544 constexpr auto const &unary() const { return mUnary; }
545 constexpr auto const &pattern() const { return mPattern; }
546
547 private:
548 Unary const mUnary;
549 InternalPatternT<Pattern> const mPattern;
550 };
551
552 template <typename Unary, typename Pattern>
553 constexpr auto app(Unary &&unary, Pattern const &pattern)

Callers 1

matchit.hFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected