20#ifndef LIBREPCB_CORE_SCOPEGUARDLIST_H
21#define LIBREPCB_CORE_SCOPEGUARDLIST_H
71 }
catch (
const std::exception& e) {
72 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
Keeps a list of functions to call.
Definition: scopeguardlist.h:45
void add(Fun f)
Definition: scopeguardlist.h:82
ScopeGuardList(size_t size) noexcept
Definition: scopeguardlist.h:49
ScopeGuardList(const ScopeGuardList &)=delete
ScopeGuardList(ScopeGuardList &&rhs) noexcept
Definition: scopeguardlist.h:53
ScopeGuardList & operator=(const ScopeGuardList &)=delete
~ScopeGuardList() noexcept
Definition: scopeguardlist.h:63
std::vector< std::function< void()> > mScopeGuards
Definition: scopeguardlist.h:87
Definition: occmodel.cpp:77
ScopeGuard< Fun > scopeGuard(Fun f)
Definition: scopeguard.h:104