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

◆ operator==() [1/3]

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

Definition at line 42 of file optional.h.

42 {
43 if (empty() && other.empty()) {
44 return true;
45 }
46 if (empty() || other.empty()) {
47 return false;
48 }
49 return *ptr() == *other.ptr();
50 }
bool empty() const
Definition optional.h:21
T * ptr()
Definition optional.h:22

References Optional(), empty(), and ptr().

+ Here is the call graph for this function: