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

◆ make_scope_exit()

template<typename EF>
scope_exit< decay_t< EF > > fl::make_scope_exit ( EF && f)

Factory for C++11/14 (no CTAD).

Usage: auto guard = fl::make_scope_exit([&]{ cleanup(); });

Definition at line 48 of file scope_exit.h.

48 {
50}
RAII guard that executes a callable when destroyed.
Definition scope_exit.h:17
constexpr T && forward(typename remove_reference< T >::type &t) FL_NOEXCEPT
Definition s16x16x4.h:234

References fl::fl::forward().

Referenced by fl::task::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: