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

Function main

sample/detectTuplePattern.cpp:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19static_assert(detectTuplePattern(std::make_tuple(2, 3, 5, 7, 2)) == 4);
20
21int32_t main()
22{
23 std::cout << detectTuplePattern(std::make_tuple(2, 3, 5, 7, 2)) << std::endl;
24 std::cout << detectTuplePattern(std::make_tuple(2, 3, 4, 5, 6)) << std::endl;
25 std::cout << detectTuplePattern(std::make_tuple(3, 3, 3, 2)) << std::endl;
26 std::cout << detectTuplePattern(std::make_tuple(3, 4, 5, 6, 7)) << std::endl;
27 return 0;
28}

Callers

nothing calls this directly

Calls 1

detectTuplePatternFunction · 0.85

Tested by

no test coverage detected