|
Botan 3.11.0
Crypto and TLS for C&
|
Helper class to create a RAII-style cleanup callback. More...
#include <scoped_cleanup.h>
Public Member Functions | |
| void | disengage () noexcept |
| scoped_cleanup & | operator= (const scoped_cleanup &)=delete |
| scoped_cleanup & | operator= (scoped_cleanup &&other) noexcept |
| scoped_cleanup (const scoped_cleanup &)=delete | |
| scoped_cleanup (FunT cleanup) | |
| scoped_cleanup (scoped_cleanup &&other) noexcept | |
| ~scoped_cleanup () | |
Helper class to create a RAII-style cleanup callback.
Ensures that the cleanup callback given in the object's constructor is called when the object is destroyed. Use this to ensure some cleanup code runs when leaving the current scope.
Definition at line 24 of file scoped_cleanup.h.
|
inlineexplicit |
Definition at line 26 of file scoped_cleanup.h.
Referenced by operator=(), operator=(), scoped_cleanup(), and scoped_cleanup().
|
delete |
References scoped_cleanup().
|
inlinenoexcept |
|
inline |
Definition at line 41 of file scoped_cleanup.h.
|
inlinenoexcept |
Disengage the cleanup callback, i.e., prevent it from being called
Definition at line 50 of file scoped_cleanup.h.
|
delete |
References scoped_cleanup().
|
inlinenoexcept |
Definition at line 33 of file scoped_cleanup.h.
References scoped_cleanup().