Skip to content
Welcome to the new CppUtils documentation!
template <class F>
explicit constexpr ScopeGuard::ScopeGuard(F&& onExit) noexcept(std::is_nothrow_constructible_v<Function, F>);

ScopeGuard::ScopeGuard(const ScopeGuard&) = delete;

auto ScopeGuard::operator=(const ScopeGuard&) -> ScopeGuard& = delete;

constexpr ScopeGuard::~ScopeGuard() noexcept;

constexpr void ScopeGuard::dismiss() noexcept;