| 16 | namespace { |
| 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 | |
| 25 | TEST_CASE("is_permutation", "[algorithms][approvals]") { |