max_element (STL/CLR)
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.
Syntax
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);
Remarks
This function behaves the same as the STL function max_element
. For more information, see max_element.
Requirements
Header: <cliext/algorithm>
Namespace: cliext