Thanks for your prev. comment , Now I found that in function op_selectTopR we're trying to create a new vector in which the value of elements are greater than N
Am I right ?
if yes, would you please let me know whats the role of following instruction?
std::nth_element(tmp.begin(), tmp.begin()+R, tmp.end(), std::greater());
Dear xiang :
Thanks for your prev. comment , Now I found that in function op_selectTopR we're trying to create a new vector in which the value of elements are greater than N Am I right ?
if yes, would you please let me know whats the role of following instruction? std::nth_element(tmp.begin(), tmp.begin()+R, tmp.end(), std::greater());