max_element (STL/CLR)
在指定範圍的二元述詞中指定排序準則會尋找第一個最大的項目。
template<class _FwdIt> inline
_FwdIt max_element(_FwdIt _First, _FwdIt _Last);
template<class _FwdIt, class _Pr> inline
_FwdIt max_element(_FwdIt _First, _FwdIt _Last, _Pr _Pred);
備註
這個函式行為和 STL 函式一樣max_element。如需詳細資訊,請參閱 max_element。
需求
標頭: < cliext/演算法 >
Namespace: cliext