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

Method operator==

src/platforms/shared/ui/json/number_field.cpp.hpp:125–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125bool JsonNumberFieldImpl::operator==(float v) const FL_NOEXCEPT { return fl::almost_equal(value(), v); }
126
127bool JsonNumberFieldImpl::operator==(int v) const FL_NOEXCEPT { return fl::almost_equal(value(), static_cast<float>(v)); }
128

Callers

nothing calls this directly

Calls 2

almost_equalFunction · 0.85
valueFunction · 0.50

Tested by

no test coverage detected