nth_element

The function nth_element is used to sort based upon a specified position.

  template<class RandomAccessIterator>
  void nth_element
  (RandomAccessIterator first RandomAccessIterator nth,
  RandomAccessIterator last);
  template<class RandomAccessIterator, class Compare>
  void nth_element
  (RandomAccessIterator first,RandomAccessIterator nth,
  RandomAccessIterator last, Compare comp);
  
Remarks

There is no value returned.