Botan 3.4.0
Crypto and TLS for C&
|
Helper class to create a RAII-style cleanup callback. More...
#include <stl_util.h>
Public Member Functions | |
void | disengage () |
scoped_cleanup & | operator= (const scoped_cleanup &)=delete |
scoped_cleanup & | operator= (scoped_cleanup &&)=delete |
scoped_cleanup (const scoped_cleanup &)=delete | |
scoped_cleanup (FunT cleanup) | |
scoped_cleanup (scoped_cleanup &&)=delete | |
~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 340 of file stl_util.h.
|
inlineexplicit |
Definition at line 342 of file stl_util.h.
|
delete |
|
delete |
|
inline |
Definition at line 349 of file stl_util.h.
|
inline |
Disengage the cleanup callback, i.e., prevent it from being called
Definition at line 358 of file stl_util.h.
|
delete |
|
delete |