System::MakeScopeGuard 方法

System::MakeScopeGuard method

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

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

ReturnValue

ScopedGuard 类的一个新实例

另见