cpp/error/error condition

is a platform-independent error code. Like std, it is uniquely identified by an integer value and a std, but unlike std, the value is not platform-dependent.

A typical implementation holds one integer data member (the value) and a pointer to an std.