Lines Matching defs:comp
37 ForwardIt min_element(ForwardIt first, ForwardIt last, Compare comp)
45 if (comp(*first, *smallest))
67 ForwardIt max_element(ForwardIt first, ForwardIt last, Compare comp)
75 if (comp(*largest, *first))
93 const T& max( const T& a, const T& b, Compare comp ) {
94 return (comp(a, b)) ? b : a;
98 T max(std::initializer_list<T> ilist, Compare comp) {
99 return *std::max_element(ilist.begin(), ilist.end(), comp);
115 const T& min( const T& a, const T& b, Compare comp ) {
116 return (comp(b, a)) ? b : a;
120 T min(std::initializer_list<T> ilist, Compare comp) {
121 return *std::min_element(ilist.begin(), ilist.end(), comp);