![]() |
Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
|
DEMO |
Specialization of expected for void — used for operations that return success or error only. More...
#include <error.hpp>
Public Member Functions | |
| expected () | |
| Construct a successful (OK) result with no payload. | |
| expected (const Error &err) | |
| Construct a failed result from a const Error reference. | |
| expected (Error &&err) | |
| Construct a failed result by moving an Error. | |
| expected (ErrorCode code, std::string msg) | |
| Convenience constructor: build an Error in-place from a code and message. | |
| bool | has_value () const |
| Return true if the result represents success (no error). | |
| operator bool () const | |
| Return true if the result represents success. | |
| const Error & | error () const |
Access the error payload (valid for both success and failure; check ok() on the returned Error). | |
Specialization of expected for void — used for operations that return success or error only.
Side-effect-only operations (e.g. write_column(), close(), flush_row_group()) return expected<void>. There is no success payload; callers simply check has_value() or operator bool() and, on failure, inspect error().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |