Function nth_element
boost::compute::nth_element
Synopsis
template<typename Iterator, typename Compare>
void nth_element(Iterator first, Iterator nth, Iterator last,
Compare compare,
command_queue & queue = system::default_queue());
template<typename Iterator>
void nth_element(Iterator first, Iterator nth, Iterator last,
command_queue & queue = system::default_queue());
Description
Перестраивает элементы в диапазоне<first>,<last>таким образом, что элемент<nth>будет находиться в этом положении в сортированной последовательности.