std::is_error_code_enum
Min standard notice:
Header: <system_error>
If T is an error code enumeration (such as std::io_errc and std::future_errc), this template provides the member constant value equal true. For any other type, value is false.
# Declarations
template< class T >
struct is_error_code_enum;
(since C++11)