mitteLib
|
This is basically std::variant<E, T1, ...>, contextually convertible to bool if T is present. Also, it can take ''void'' T; in that case it represents either a success state or carries the error data. That is just an alias to ''result<E, result_success_type>''.
All result classes holding data compare true to result_success, and all result classes can be converted to ''result<void, E>''.