System::MakeScopeGuard method

System::MakeScopeGuard method

A factory function that creates instances of ScopedGuard class.

template<typename F> ScopeGuard<F> System::MakeScopeGuard(F f)
ParameterDescription
Thetype of the function object to be invoked by the constructed ScopedGuard object
ParameterTypeDescription
fFThe function object to pass to ScopedGuard class’ constructor.

ReturnValue

A new instance of ScopedGuard class

See Also