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 103 of file optional.h.

103 {
104 if (!other.template holdsTypeOf<T>()) {
105 return false;
106 }
107 if (empty()) {
108 return false;
109 }
110 if (other.empty()) {
111 return false;
112 }
113 return *ptr() == *other.template ptr<T>();
114 }
bool empty() const
Definition optional.h:32
T * ptr()
Definition optional.h:34

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

+ Here is the call graph for this function: