LibrePCB Developers Documentation
|
Keeps a list of functions to call. More...
#include <scopeguardlist.h>
Public Member Functions | |
ScopeGuardList ()=default | |
ScopeGuardList (size_t size) noexcept | |
ScopeGuardList (ScopeGuardList &&rhs) noexcept | |
ScopeGuardList (const ScopeGuardList &)=delete | |
ScopeGuardList & | operator= (const ScopeGuardList &)=delete |
~ScopeGuardList () noexcept | |
template<class Fun > | |
void | add (Fun f) |
Public Member Functions inherited from ScopeGuardBase | |
ScopeGuardBase () noexcept | |
ScopeGuardBase (ScopeGuardBase &&rhs) noexcept | |
void | dismiss () noexcept |
Private Attributes | |
std::vector< std::function< void()> > | mScopeGuards |
Additional Inherited Members | |
Protected Member Functions inherited from ScopeGuardBase | |
~ScopeGuardBase ()=default | |
Protected Attributes inherited from ScopeGuardBase | |
bool | mActive |
Keeps a list of functions to call.
|
default |
|
inlinenoexcept |
|
inlinenoexcept |
|
delete |
|
inlinenoexcept |
Calls the added functions in reverse order
|
delete |
|
inline |
Add a function
|
private |