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

◆ operator==() [3/3]

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

Definition at line 62 of file optional.h.

62 {
63 if (!other.template holdsTypeOf<T>()) {
64 return false;
65 }
66 if (empty()) {
67 return false;
68 }
69 if (other.empty()) {
70 return false;
71 }
72 return *ptr() == *other.template ptr<T>();
73 }
bool empty() const
Definition optional.h:21
T * ptr()
Definition optional.h:22

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

+ Here is the call graph for this function: