MakeScopeGuard()

System::MakeScopeGuard(F) function

A factory function that creates instances of ScopedGuard class.

template<typename F> ScopeGuard<F> System::MakeScopeGuard(F f)

Template parameters

ParameterDescription
Thetype of the function object to be invoked by the constructed ScopedGuard object

Arguments

ParameterTypeDescription
fFThe function object to pass to ScopedGuard class’ constructor.

Return Value

A new instance of ScopedGuard class

See Also