FastLED 3.9.15
Loading...
Searching...
No Matches
fl::scope_exit< EF > Class Template Reference

Detailed Description

template<typename EF>
class fl::scope_exit< EF >

RAII guard that executes a callable when destroyed.

Template Parameters
EFExit function type (lambda, functor, function pointer).

Definition at line 17 of file scope_exit.h.

#include <scope_exit.h>

Public Member Functions

 scope_exit (const scope_exit &) FL_NOEXCEPT=delete
 
template<typename EFP>
 scope_exit (EFP &&f)
 
 scope_exit (scope_exit &&rhs) FL_NOEXCEPT
 
 ~scope_exit () FL_NOEXCEPT
 
scope_exitoperator= (const scope_exit &) FL_NOEXCEPT=delete
 
scope_exitoperator= (scope_exit &&) FL_NOEXCEPT=delete
 
void release () FL_NOEXCEPT
 

Private Attributes

bool mActive
 
EF mExitFunction
 

The documentation for this class was generated from the following file: