FastLED 3.10.8
Loading...
Searching...
No Matches

◆ operator bool()

template<typename T>
fl::task::PromiseResult< 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 69 of file promise_result.h.

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

References fl::FL_NO_EXCEPT, and ok().

+ Here is the call graph for this function: