MCPcopy Create free account
hub / github.com/catchorg/Catch2 / is_permutation

Function is_permutation

tests/SelfTest/IntrospectiveTests/Algorithms.tests.cpp:18–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16namespace {
17 template <typename Range1, typename Range2>
18 static bool is_permutation(Range1 const& r1, Range2 const& r2) {
19 using std::begin; using std::end;
20 return Catch::Detail::is_permutation(
21 begin( r1 ), end( r1 ), begin( r2 ), end( r2 ), std::equal_to<>{} );
22 }
23}
24
25TEST_CASE("is_permutation", "[algorithms][approvals]") {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected