Namespaces
Variants

std:: make_error_condition (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
make_error_condition
Helper classes
헤더에 정의됨 <future>
std:: error_condition make_error_condition ( std:: future_errc e ) ;
(C++11부터)

std::error_condition 객체를 std::future_errc 타입의 값으로부터 다음과 같이 생성합니다:

std:: error_condition ( static_cast < int > ( e ) , std:: future_category ( ) ) .

목차

매개변수

e - 오류 코드 번호

반환값

std::error_condition 타입의 값으로, e 에서 가져온 오류 코드 번호와 "future" 오류 카테고리를 포함합니다.

예제

참고 항목

이식 가능한 오류 코드를 보유함
(클래스)
future 오류 코드들을 식별함
(열거형)