|
Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
|
#include <common_result.h>

Public Member Functions | |
| Result (T value) | |
| Result (error_info error) | |
| bool | is_ok () const |
| bool | is_error () const |
| T & | value () |
| const T & | value () const |
| error_info & | error () |
| const error_info & | error () const |
Private Attributes | |
| std::variant< T, error_info > | data_ |
Definition at line 56 of file common_result.h.
|
inline |
Definition at line 58 of file common_result.h.
|
inline |
Definition at line 59 of file common_result.h.
|
inline |
|
inline |
|
inline |
Definition at line 62 of file common_result.h.
References common::Result< T >::is_ok().

|
inline |
Definition at line 61 of file common_result.h.
References common::Result< T >::data_.
Referenced by common::Result< T >::is_error().

|
inline |
|
inline |
|
private |
Definition at line 71 of file common_result.h.
Referenced by common::Result< T >::error(), common::Result< T >::error(), common::Result< T >::is_ok(), common::Result< T >::value(), and common::Result< T >::value().