|
Stax
Programming language
|
#include <boost/describe.hpp>#include <boost/describe/enum_to_string.hpp>#include <boost/outcome.hpp>#include <boost/preprocessor/cat.hpp>#include <boost/preprocessor/stringize.hpp>#include <filesystem>#include <optional>#include <string>#include <system_error>#include "utils.hpp"

Go to the source code of this file.
Classes | |
| struct | stax::result::is_error_enum< T > |
| class | stax::result::Err |
Namespaces | |
| namespace | stax |
| namespace | stax::result |
Concepts | |
| concept | stax::result::IsErrorCode |
Macros | |
| #define | DEFINE_ERROR_IMPL(module_name, ERROR_ENUM) |
| #define | DEFINE_ERROR(module_name, name, ...) |
| #define | RESULT_UNIQUE_NAME() BOOST_PP_CAT(__result_, __COUNTER__) |
| #define | TRY_RESULT(...) BOOST_OUTCOME_TRY(__VA_ARGS__) |
| #define | TRY_RESULT_IMPL(unique_name, expr, alt) |
| #define | TRY_RESULT_OR(expr, alt) TRY_RESULT_IMPL(RESULT_UNIQUE_NAME(), expr, alt) |
Typedefs | |
| template<typename T > | |
| using | stax::result_t |
Functions | |
| auto | stax::result::Ok () |
| #define DEFINE_ERROR | ( | module_name, | |
| name, | |||
| ... ) |
| #define DEFINE_ERROR_IMPL | ( | module_name, | |
| ERROR_ENUM ) |
| #define RESULT_UNIQUE_NAME | ( | ) | BOOST_PP_CAT(__result_, __COUNTER__) |
| #define TRY_RESULT | ( | ... | ) | BOOST_OUTCOME_TRY(__VA_ARGS__) |
| #define TRY_RESULT_IMPL | ( | unique_name, | |
| expr, | |||
| alt ) |
| #define TRY_RESULT_OR | ( | expr, | |
| alt ) TRY_RESULT_IMPL(RESULT_UNIQUE_NAME(), expr, alt) |