Closed tgockel closed 4 years ago
A result<TValue, TError> represents a value which might be a success or a failure. It is similar to std::variant<TValue, TError>, but additional meaning is attached to the values to allow disambiguation when TValue and TError are the same type.
result<TValue, TError>
std::variant<TValue, TError>
TValue
TError
A
result<TValue, TError>
represents a value which might be a success or a failure. It is similar tostd::variant<TValue, TError>
, but additional meaning is attached to the values to allow disambiguation whenTValue
andTError
are the same type.