Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
Loading...
Searching...
No Matches
database::concepts::CompensationAction Concept Reference

A callable that represents a compensation (rollback) action. More...

#include <concepts.h>

Concept definition

template<typename F>
A callable that represents a compensation (rollback) action.
Definition concepts.h:262
A callable type that can be invoked with given arguments.
Definition concepts.h:77

Detailed Description

A callable that represents a compensation (rollback) action.

Example usage:

template<TransactionAction A, CompensationAction C>
void add_saga_step(A&& action, C&& compensation) {
steps_.emplace_back(std::forward<A>(action), std::forward<C>(compensation));
}

Definition at line 262 of file concepts.h.