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

Function matched

include/matchit.h:2018–2025  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2016
2017 template <typename Value, typename Pattern>
2018 constexpr auto matched(Value &&v, Pattern &&p)
2019 {
2020 return match(std::forward<Value>(v))(
2021 pattern | std::forward<Pattern>(p) = []
2022 { return true; },
2023 pattern | _ = []
2024 { return false; });
2025 }
2026
2027 constexpr auto dsVia = [](auto ...members)
2028 {

Callers 3

TESTFunction · 0.50
TESTFunction · 0.50
TESTFunction · 0.50

Calls 1

matchFunction · 0.70

Tested by

no test coverage detected