System::MakeScopeGuard‑metod
System::MakeScopeGuard method
En fabrikfunktion som skapar instanser av ScopedGuard‑klassen.
template<typename F> ScopeGuard<F> System::MakeScopeGuard(F f)
| Parameter | Beskrivning |
|---|---|
| Den | typ av funktionsobjektet som ska anropas av det konstruerade ScopedGuard‑objektet |
| Parameter | Type | Beskrivning |
|---|---|---|
| f | F | Funktionsobjektet att skicka till ScopedGuard class’ konstruktor. |
ReturnValue
En ny instans av ScopedGuard class
Se även
- Namespace System
- Library Aspose.Page for C++