![]() |
MySQL 8.0.43
Source Code Documentation
|
Generic sentry class that invokes some callable object of type F upon disposal of an instance of this class. More...
#include <sentry.h>
Public Member Functions | |
| Sentry (F dispose) | |
| Constructor for the class that stores the callable object passed as argument, to be invoked upon disposal of the object. More... | |
| virtual | ~Sentry () |
| Destructor for the class. More... | |
Private Attributes | |
| F | m_dispose |
| The callable to be invoked upon disposal of the object. More... | |
Generic sentry class that invokes some callable object of type F upon disposal of an instance of this class.
Check C++ documentation for the definition of Callable named requirement for more information.
| raii::Sentry< F >::Sentry | ( | F | dispose | ) |
Constructor for the class that stores the callable object passed as argument, to be invoked upon disposal of the object.
| dispose | The callable object to be invoked upon disposal of the object. |
|
virtual |
Destructor for the class.
It will call the stored callable.
|
private |
The callable to be invoked upon disposal of the object.