MySQL 8.0.40
Source Code Documentation
|
Go to the source code of this file.
Classes | |
class | Scope_guard< TLambda > |
A Lambda to be called at scope exit. More... | |
class | Variable_scope_guard< T > |
Template class to scope guard variables. More... | |
Functions | |
template<typename TLambda > | |
Scope_guard< TLambda > | create_scope_guard (const TLambda rollback_lambda) |
Create a scope guard object. More... | |
Scope_guard< TLambda > create_scope_guard | ( | const TLambda | rollback_lambda | ) |
Create a scope guard object.
Always use this instead of the Scope_guard template itself!
TLambda | The type of the lambda. Inferred, never specify it. |
rollback_lambda | The lambda to execute. |