LibrePCB Developers Documentation
|
#include <scopeguard.h>
Public Member Functions | |
ScopeGuard ()=delete | |
ScopeGuard (const ScopeGuard &)=delete | |
ScopeGuard (Fun f) noexcept | |
ScopeGuard (ScopeGuard &&rhs) noexcept | |
~ScopeGuard () noexcept | |
ScopeGuard & | operator= (const ScopeGuard &)=delete |
Public Member Functions inherited from ScopeGuardBase | |
ScopeGuardBase () noexcept | |
ScopeGuardBase (ScopeGuardBase &&rhs) noexcept | |
void | dismiss () noexcept |
Private Attributes | |
Fun | mF |
Additional Inherited Members | |
Protected Member Functions inherited from ScopeGuardBase | |
~ScopeGuardBase ()=default | |
Protected Attributes inherited from ScopeGuardBase | |
bool | mActive |
Implementation of a ScopeGuard based on https://channel9.msdn.com/Shows/Going+Deep/C-and-Beyond-2012-Andrei-Alexandrescu-Systematic-Error-Handling-in-C
|
delete |
|
delete |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Calls the attached cleanup function
|
delete |
|
private |