MCPcopy Create free account
hub / github.com/Dobiasd/FunctionalPlus / is_permutation_of

Function is_permutation_of

include/fplus/container_properties.hpp:608–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

606// O(log(n))
607template <typename Container>
608bool is_permutation_of(const Container& xs, const Container& ys)
609{
610 return size_of_cont(xs) == size_of_cont(ys) && sort(xs) == sort(ys);
611}
612
613// API search type: fill_pigeonholes_to : (Int, [Int]) -> [Int]
614// fwd bind count: 1

Callers 2

transform_test.cppFile · 0.50

Calls 2

size_of_contFunction · 0.70
sortFunction · 0.70

Tested by

no test coverage detected