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