|
cli11
|
Runs a closure when it goes out of scope. More...
Public Member Functions | |
| scope_guard_t (F closure_) | |
| Takes ownership of the closure. | |
| ~scope_guard_t () | |
| Runs the closure. | |
Public Attributes | |
| F | closure |
| The closure to run on destruction. | |
Runs a closure when it goes out of scope.
| F | Any callable invocable with no arguments. |
|
inlineexplicit |
Takes ownership of the closure.
| closure_ | The closure to run on destruction. |