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

◆ operator==() [3/4]

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

Definition at line 95 of file optional.h.

95 {
96 if (!other.template holdsTypeOf<T>()) {
97 return false;
98 }
99 if (empty()) {
100 return false;
101 }
102 if (other.empty()) {
103 return false;
104 }
105 return *ptr() == *other.template ptr<T>();
106 }
bool empty() const
Definition optional.h:29
T * ptr()
Definition optional.h:31

References empty(), fl::Variant< Types >::empty(), and ptr().

+ Here is the call graph for this function: