![]() |
WPILibC++ 2027.0.0-alpha-4
|
scope_exit is a general-purpose scope guard intended to call its exit function when a scope is exited. More...
Public Member Functions | |
| scope_exit (F &&f) noexcept | |
| Constructs a scope_exit. | |
| ~scope_exit () | |
| scope_exit (scope_exit &&rhs) noexcept | |
| Move constructor. | |
| scope_exit (const scope_exit &)=delete | |
| scope_exit & | operator= (const scope_exit &)=delete |
| void | release () noexcept |
| Makes the scope_exit inactive. | |
scope_exit is a general-purpose scope guard intended to call its exit function when a scope is exited.
| F | Function type. |
|
inlineexplicitnoexcept |
Constructs a scope_exit.
| f | Function to call on scope exit. |
|
inline |
|
inlinenoexcept |
Move constructor.
| rhs | scope_exit from which to move. |
|
delete |
|
delete |
|
inlinenoexcept |
Makes the scope_exit inactive.