5 #ifndef ESTD_SCOPEGUARD_HPP_ 6 #define ESTD_SCOPEGUARD_HPP_ 8 template<
typename Function>
19 constexpr
explicit ScopeGuard(Function&&
function) noexcept :
20 function_{std::move(
function)},
33 function_(
std::move(other.function_)),
34 released_{other.released_}
40 #endif // ESTD_SCOPEGUARD_HPP_ Definition: ScopeGuard.hpp:9
constexpr ScopeGuard(Function &&function) noexcept
ScopeGuard's constructor.
Definition: ScopeGuard.hpp:19
ScopeGuard(ScopeGuard &&other) noexcept
ScopeGuard's move constructor.
Definition: ScopeGuard.hpp:32