遵循在序列的分区元素的大小,正确设置序列的 nTh 元素该范围,以便在它前面的所有元素小于或等于它和所有元素都大于或等于它。
template<class _RanIt> inline
void nth_element(_RanIt _First, _RanIt _Nth, _RanIt _Last);
template<class _RanIt, class _Pr> inline
void nth_element(_RanIt _First, _RanIt _Nth, _RanIt _Last,
_Pr _Pred);
备注
此功能相同的行为就如同 STL 功能 nth_element的。有关更多信息,请参见 nth_element。
要求
标题: <cliext/算法>
命名空间: cliext