min_element is to Finds the first occurrence of smallest element in a specified range where the ordering criterion may be specified by a binary predicate.
template<class ForwardIterator>ForwardIterator min_element( ForwardIterator _First, ForwardIterator _Last );template<class ForwardIterator, class BinaryPredicate>ForwardIterator min_element( ForwardIterator _First, ForwardIterator _Last, BinaryPredicate _Comp );
_FirstA forward iterator addressing the position of the first element in the range to be searched for the largest element._LastAforward iterator addressing the position one past the final element in the range to be searched for the largest element._CompUser-defined predicate function object that defines the sense in which one element is greater than another. The binary predicate takes two arguments and should return true when the first element is less than the second element and false otherwise.
A forward iterator addressing the position of the first occurrence of the smallest element in the range searched.
本文发布于:2023-03-26 18:56:07,感谢您对本站的认可!
本文链接:http://www.ranqi119.com/to/1680183908264110.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |