FastLED 3.10.8
Loading...
Searching...
No Matches

◆ lexicographical_compare() [1/2]

template<typename Iterator1, typename Iterator2>
bool fl::adl_barrier::lexicographical_compare ( Iterator1 first1,
Iterator1 last1,
Iterator2 first2,
Iterator2 last2 )

Definition at line 149 of file algorithm.h.

149 {
150 while (first1 != last1 && first2 != last2) {
151 if (*first1 < *first2) {
152 return true;
153 }
154 if (*first2 < *first1) {
155 return false;
156 }
157 ++first1;
158 ++first2;
159 }
160 // If we've exhausted first1 but not first2, first1 is less
161 // If we've exhausted both, they're equal (return false)
162 // If we've exhausted first2 but not first1, first2 is less (return false)
163 return (first1 == last1) && (first2 != last2);
164}

References fl::FL_NO_EXCEPT.

Referenced by fl::MapRedBlackTree< Key, T, Compare, fl::allocator_slab< char > >< Key, T, Compare >::operator<(), fl::operator<(), fl::operator<(), and fl::set< T, fl::allocator_inlined_slab< T, N > >::operator<().

+ Here is the caller graph for this function: