Template Function bats::util::sortperm(RAI, RAI, Compare)¶
Defined in File permutation.hpp
Function Documentation¶
-
template<typename RAI, class Compare>
std::vector<size_t> bats::util::sortperm(RAI first, RAI last, Compare comp)¶ filll a sortperm using custom comparator
- Parameters
first – random acces iterator at beginning of range to sort
last – random access iterator just past the last element of range to sort
comp – comparison function, comp(a, b) should return whether a should come before b