Botan 3.8.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 355 of file stl_util.h.
|
inlineexplicit |
Definition at line 357 of file stl_util.h.
Referenced by operator=(), operator=(), scoped_cleanup(), and scoped_cleanup().
|
delete |
References scoped_cleanup().
|
inline |
|
inline |
Definition at line 372 of file stl_util.h.
|
inline |
Disengage the cleanup callback, i.e., prevent it from being called
Definition at line 381 of file stl_util.h.
|
delete |
References scoped_cleanup().
|
inline |
Definition at line 364 of file stl_util.h.
References scoped_cleanup().