Predefined exceptions for common errors. More...
Go to the source code of this file.
Classes | |
| struct | dependent_false< T > |
Namespaces | |
| namespace | bbm |
Macros | |
| #define | BBM_ERROR_MSG(...) BBM_STRINGIFY( __VA_ARGS__ (__FILE__ : __LINE__). ) |
Predefined Run-time Errors | |
| #define | bbm_incomplete_init std::runtime_error(BBM_ERROR_MSG(BBM: accessing incompletely initialized object)) |
| #define | bbm_unassigned_ref std::runtime_error(BBM_ERROR_MSG(BBM: Unassigned references cannot be cast/read)) |
| #define | bbm_out_of_range std::runtime_error(BBM_ERROR_MSG(BBM: index out of range)) |
| #define | bbm_size_error std::runtime_error(BBM_ERROR_MSG(BBM: size error)) |
| #define | bbm_unevaluable std::runtime_error(BBM_ERROR_MSG(BBM: cannot evaluate expression)) |
Predefined Compile-time Errors | |
| #define | BBM_SIZE_MISMATCH "BBM: size mismatch" |
| #define | BBM_NO_MATCH "BBM: no matching argument found" |
| #define | BBM_NOT_DIFF "BBM: type does not support gradients" |
| #define | BBM_INVALID_LAMBDA "BBM: invalid lambda signature" |
| #define | BBM_CONST_ASSIGNMENT "BBM: cannot assign to a const type" |
Variables | |
| template<typename... T> | |
| static constexpr bool | dependent_false_v = dependent_false<T...>::value |
| template<typename... T> | |
| static constexpr bool | dependent_true_v = !dependent_false<T...>::value |
Predefined exceptions for common errors.
| #define BBM_CONST_ASSIGNMENT "BBM: cannot assign to a const type" |
| #define BBM_ERROR_MSG | ( | ... | ) | BBM_STRINGIFY( __VA_ARGS__ (__FILE__ : __LINE__). ) |
| #define bbm_incomplete_init std::runtime_error(BBM_ERROR_MSG(BBM: accessing incompletely initialized object)) |
| #define BBM_INVALID_LAMBDA "BBM: invalid lambda signature" |
| #define BBM_NO_MATCH "BBM: no matching argument found" |
| #define BBM_NOT_DIFF "BBM: type does not support gradients" |
| #define bbm_out_of_range std::runtime_error(BBM_ERROR_MSG(BBM: index out of range)) |
| #define bbm_size_error std::runtime_error(BBM_ERROR_MSG(BBM: size error)) |
| #define BBM_SIZE_MISMATCH "BBM: size mismatch" |
| #define bbm_unassigned_ref std::runtime_error(BBM_ERROR_MSG(BBM: Unassigned references cannot be cast/read)) |
| #define bbm_unevaluable std::runtime_error(BBM_ERROR_MSG(BBM: cannot evaluate expression)) |