nth_element (STL/CLR)

磁碟分割項目時,正確地找出各種n第序列的項目範圍中,以使它的前面的所有項目小於或等於它,而其後序列中的所有元件都大於或等於它。

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/演算法 >

Namespace: cliext

請參閱

參考

algorithm (STL/CLR)