MCPcopy Create free account
hub / github.com/FastLED/FastLED / equal_container

Function equal_container

src/fl/stl/algorithm.h:183–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181
182template <typename Container1, typename Container2>
183bool equal_container(const Container1& c1, const Container2& c2) FL_NOEXCEPT {
184 fl::size size1 = c1.size();
185 fl::size size2 = c2.size();
186 if (size1 != size2) {
187 return false;
188 }
189 return equal(c1.begin(), c1.end(), c2.begin(), c2.end());
190}
191
192template <typename Container1, typename Container2, typename BinaryPredicate>
193bool equal_container(const Container1& c1, const Container2& c2, BinaryPredicate pred) FL_NOEXCEPT {

Callers 1

FL_TEST_FILEFunction · 0.85

Calls 4

equalFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected