ZXFoundation™ 26h2
Loading...
Searching...
No Matches
zxfoundation::base::transaction< Derived > Class Template Referenceexport

Public Member Functions

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

Protected Member Functions

 ~transaction () noexcept
 Destructor: fires on_rollback() if commit() was never called.

The documentation for this class was generated from the following file: