Template Function ADS::detail::samePermutation

Function Documentation

template<class T, class C>
bool ADS::detail::samePermutation(const std::vector<T> &A, std::vector<T> before, C less, std::size_t lo = 0, std::size_t hi = std::size_t(-1))

A[ lo .. hi ) holds the items of before, sorted or not.