20#ifndef LIBREPCB_CORE_SCOPEGUARD_H
21#define LIBREPCB_CORE_SCOPEGUARD_H
88 }
catch (
const std::exception& e) {
89 qFatal(
"Cleanup function threw an exception: %s", e.what());
Definition: scopeguard.h:41
ScopeGuardBase() noexcept
Definition: scopeguard.h:43
bool mActive
Definition: scopeguard.h:60
~ScopeGuardBase()=default
void dismiss() noexcept
Definition: scopeguard.h:52
ScopeGuardBase(ScopeGuardBase &&rhs) noexcept
Definition: scopeguard.h:45
Definition: scopeguard.h:71
ScopeGuard(const ScopeGuard &)=delete
ScopeGuard(Fun f) noexcept
Definition: scopeguard.h:76
ScopeGuard(ScopeGuard &&rhs) noexcept
Definition: scopeguard.h:78
Fun mF
Definition: scopeguard.h:97
~ScopeGuard() noexcept
Definition: scopeguard.h:84
ScopeGuard & operator=(const ScopeGuard &)=delete
Definition: occmodel.cpp:77
ScopeGuard< Fun > scopeGuard(Fun f)
Definition: scopeguard.h:104