Template Function bats::util::sortperm(const size_t, const size_t, Compare)

Function Documentation

template<class Compare>
std::vector<size_t> bats::util::sortperm(const size_t first, const size_t 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