19 explicit scope_exit(F&& f) noexcept : m_f{std::forward<F>(f)} {}
31 : m_f{std::move(rhs.m_f)}, m_active{rhs.m_active} {
36 scope_exit& operator=(
const scope_exit&) =
delete;
39 void release() noexcept { m_active =
false; }
Definition scope_exit.hpp:14
void release() noexcept
Makes the scope_exit inactive.
Definition scope_exit.hpp:39
scope_exit(F &&f) noexcept
Definition scope_exit.hpp:19
scope_exit(scope_exit &&rhs) noexcept
Definition scope_exit.hpp:30