MCPcopy Create free account
hub / github.com/FastLED/FastLED / operator()

Method operator()

src/fl/stl/string.h:534–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532// where you need fast lookup and don't care about alphabetical order.
533struct StringFastLess {
534 bool operator()(const string &a, const string &b) const FL_NOEXCEPT {
535 fl::size al = a.size(), bl = b.size();
536 if (al != bl) {
537 return al < bl;
538 }
539 return fl::memcmp(a.c_str(), b.c_str(), al) < 0;
540 }
541};
542
543} // namespace fl

Callers

nothing calls this directly

Calls 3

memcmpFunction · 0.85
sizeMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected