CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
The service class that provides services for running a particular function object when an instance of the class goes out of scope. More...
#include <scope_guard.h>
Public Member Functions | |
ScopeGuard (F f) | |
Constructs an instance that is set up to invoke the specified function object. More... | |
~ScopeGuard () noexcept(false) | |
Invokes the function object passed to the constructor. More... | |
The service class that provides services for running a particular function object when an instance of the class goes out of scope.
F | The type of the function object invoked by the instances of the ScopedGuard class |
|
inline |
Constructs an instance that is set up to invoke the specified function object.
f | The function object to be invoked in the destructor of the object being constructed. |
|
inlinenoexcept |
Invokes the function object passed to the constructor.