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

◆ operator==() [1/6]

bool fl::Optional< T >::operator== ( const Optional< T && > & other) const
inline

Definition at line 83 of file optional.h.

83 {
84 if (empty() && other.empty()) {
85 return true;
86 }
87 if (empty() || other.empty()) {
88 return false;
89 }
90 return *ptr() == *other.ptr();
91 }
bool empty() const FL_NOEXCEPT
Definition optional.h:170
T * ptr() FL_NOEXCEPT
Definition optional.h:172
T * ptr() FL_NOEXCEPT
Definition optional.h:43
bool empty() const FL_NOEXCEPT
Definition optional.h:41