Namespaces
Variants

std:: is_error_code_enum <std::future_errc>

From cppreference.net
Concurrency support library
Threads
(C++11)
(C++20)
this_thread namespace
(C++11)
(C++11)
Cooperative cancellation
Mutual exclusion
Generic lock management
Condition variables
(C++11)
Semaphores
Latches and Barriers
(C++20)
(C++20)
Futures
(C++11)
(C++11)
(C++11)
Safe reclamation
Hazard pointers
Atomic types
(C++11)
(C++20)
Initialization of atomic types
(C++11) (deprecated in C++20)
(C++11) (deprecated in C++20)
Memory ordering
(C++11) (deprecated in C++26)
Free functions for atomic operations
Free functions for atomic flags
std::future_errc
Non-member functions
Helper classes
is_error_code_enum
定义于头文件 <future>
template <>
struct is_error_code_enum < std:: future_errc > : std:: true_type ;
(C++11 起)

指定 std::future_errc 为错误代码枚举类型。这使得 std::error_code 能够进行自动转换。

参见

标识类为 error_code 枚举类型
(类模板)