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

◆ equal() [4/4]

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

Definition at line 129 of file algorithm.h.

129 {
130 while (first1 != last1 && first2 != last2) {
131 if (!pred(*first1, *first2)) {
132 return false;
133 }
134 ++first1;
135 ++first2;
136 }
137 return first1 == last1 && first2 == last2;
138}