Template Function ADS::nthElement(It, It, It, C)

Function Documentation

template<std::random_access_iterator It, class C = std::less<>>
void ADS::nthElement(It first, It nth, It last, C less = C())

puts in nth the item of its rank in [ first , last ) by less(), the items before it not larger and those after it not smaller

Pre:

first <= nth < last, or first == last