Namespaces
Variants

std::future_error:: future_error

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
future_error ( const future_error & other ) noexcept ;
(1) (C++11부터)
explicit future_error ( std:: future_errc ec ) ;
(2) (C++17부터)
1) 복사 생성자. 새로운 future_error 객체의 내용을 other 의 내용으로 초기화합니다. * this other 모두가 std::future_error 동적 타입을 가질 경우 std:: strcmp ( what ( ) , other. what ( ) ) == 0 입니다.
2) future_error 객체를 새로 생성하며, 이 객체는 오류 코드 std:: make_error_code ( ec ) 를 포함합니다.

매개변수

other - 복사할 다른 future_error 객체
ec - 오류 코드

참고 사항

사용자가 C++17 이전에 다른 future_error 를 복사하는 것 외에는 표준을 준수하는 방식으로 future_error 를 생성할 수 있는 방법이 없습니다. C++11과 C++14는 std::error_code 를 받는 설명 전용( exposition-only) 공개 생성자를 명시하고 있으며, 일부 구현에서는 이러한 생성자를 제공합니다.