Construct from T

Synopsis

Declared in <beman/scope/scope.hpp>

template<typename T>
constexpr
explicit
scope_guard(T&& exit_func) noexcept(std::is_nothrow_constructible_v<ScopeExitFunc>)
requires (!std::is_same_v<std::remove_cvref<T>, scope_guard>);

Parameters

Name

Description

exit_func

The object to move construct from