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

◆ operator==() [4/6]

bool fl::Optional< T >::operator== ( const variant< TT, UU > & other) const
inline

Definition at line 127 of file optional.h.

127 {
128 if (!other.template holdsTypeOf<T>()) {
129 return false;
130 }
131 if (empty()) {
132 return false;
133 }
134 if (other.empty()) {
135 return false;
136 }
137 return *ptr() == *other.template ptr<T>();
138 }
bool empty() const FL_NOEXCEPT
Definition optional.h:170
T * ptr() FL_NOEXCEPT
Definition optional.h:172
bool empty() const FL_NOEXCEPT
Definition optional.h:41