FastLED 3.9.15
Loading...
Searching...
No Matches

◆ lexicographical_compare() [1/2]

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

Definition at line 146 of file algorithm.h.

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

References FL_NOEXCEPT.

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

+ Here is the caller graph for this function: