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

◆ operator bool()

template<typename T>
fl::result< T >::operator bool ( ) const
inlineexplicit

Boolean conversion operator (same as ok())

Returns
True if the result is successful

Allows usage like: if (result) { ... }

Definition at line 68 of file promise_result.h.

68 {
69 return ok();
70 }
bool ok() const
Check if the result is successful.

References ok().

+ Here is the call graph for this function: