max_element (STL/CLR)
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at max_element (STL/CLR).
Finds the first occurrence of largest element in a specified range where the ordering criterion may be specified by a binary predicate.
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);
This function behaves the same as the STL function max_element. For more information, see max_element.
Header: <cliext/algorithm>
Namespace: cliext
Show: