|
|
auto | commit () noexcept -> void |
| | Commit — disarms the automatic rollback on destruction.
|
|
auto | committed () const noexcept -> bool |
| | Return true if commit() has been called.
|
|
auto | mark_rolled_back () noexcept -> void |
| | Explicitly mark as rolled back (for derived classes that do custom rollback before destruction).
|
|
auto | operator= (const transaction &)=delete |
|
auto | rolled_back () const noexcept -> bool |
| | Return true if rollback has been executed.
|
|
| transaction (const transaction &)=delete |
|
| transaction (transaction &&) noexcept=default |
|
| ~transaction () noexcept |
| | Destructor: fires on_rollback() if commit() was never called.
|