28 template <
class Callable>
explicit ScopeGuard(Callable&& cleanupFunction)
29 try : f(std::forward<Callable>(cleanupFunction))
44 void dismiss()
noexcept
49 ScopeGuard(
const ScopeGuard&) =
delete;
50 ScopeGuard(ScopeGuard&& other)
noexcept =
delete;
51 ScopeGuard& operator=(
const ScopeGuard&) =
delete;
52 ScopeGuard& operator=(
const ScopeGuard&&) =
delete;
55 std::function<void()> f;