Botan 3.6.1
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 &&other) |
scoped_cleanup (const scoped_cleanup &)=delete | |
scoped_cleanup (FunT cleanup) | |
scoped_cleanup (scoped_cleanup &&other) | |
~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 354 of file stl_util.h.
|
inlineexplicit |
Definition at line 356 of file stl_util.h.
|
delete |
|
inline |
Definition at line 361 of file stl_util.h.
|
inline |
Definition at line 371 of file stl_util.h.
|
inline |
Disengage the cleanup callback, i.e., prevent it from being called
Definition at line 380 of file stl_util.h.
|
delete |
|
inline |
Definition at line 363 of file stl_util.h.