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

◆ error() [2/2]

template<typename E>
E fl::expected< void, E >::error ( ) const
inline

Definition at line 152 of file expected.h.

152 {
153 auto* err = mData.template ptr<ErrorInfo<E>>();
154 return err ? err->code : E{};
155 }
fl::variant< VoidSuccess, ErrorInfo< E > > mData
Definition expected.h:216
expected type for operations that can fail (C++23-style)
Definition expected.h:79

References FL_NOEXCEPT, and mData.