QEloquent 1.1.0
Qt most flexible ORM.
Loading...
Searching...
No Matches
result.h
1#ifndef QELOQUENT_RESULT_H
2#define QELOQUENT_RESULT_H
3
4#include <QEloquent/error.h>
5
6#include <tl/expected.hpp>
7
8namespace QEloquent {
9
15template<typename Value, typename Error = Error>
16using Result = tl::expected<Value, Error>;
17
22template<typename Error>
23using failWith = tl::unexpected<Error>;
24
25} // namespace QEloquent
26
27#endif // QELOQUENT_RESULT_H