System::MakeScopeGuard 方法

System::MakeScopeGuard method

一个创建 ScopedGuard 类实例的工厂函数。

template<typename F> ScopeGuard<F> System::MakeScopeGuard(F f)
Parameter描述
由构造的 ScopedGuard 对象调用的函数对象的类型
ParameterType描述
fF要传递给 ScopedGuard 类构造函数的函数对象。

ReturnValue

ScopedGuard 类的新实例。

另见