MCPcopy Create free account
hub / github.com/FastLED/FastLED / operator==

Method operator==

src/fl/stl/optional.h:83–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 explicit operator bool() const FL_NOEXCEPT { return !empty(); }
82
83 bool operator==(const Optional &other) const FL_NOEXCEPT {
84 if (empty() && other.empty()) {
85 return true;
86 }
87 if (empty() || other.empty()) {
88 return false;
89 }
90 return *ptr() == *other.ptr();
91 }
92
93 bool operator!=(const Optional &other) const FL_NOEXCEPT { return !(*this == other); }
94

Callers

nothing calls this directly

Calls 4

ptrFunction · 0.85
emptyFunction · 0.70
emptyMethod · 0.45
ptrMethod · 0.45

Tested by

no test coverage detected