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

Method data

sample/Predicate-based-Discriminator.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60char *String::data()
61{
62 using namespace matchit;
63 Id<char *> l;
64 Id<std::decay_t<decltype(remote)>> r;
65 return match(*this)(
66 pattern | asEnum<Local>(l) = expr(l),
67 pattern | asEnum<Remote>(r) = [&]
68 { return (*r).ptr; });
69}
70
71int32_t main()
72{

Callers 1

mainFunction · 0.80

Calls 2

matchFunction · 0.50
exprFunction · 0.50

Tested by

no test coverage detected