Namespaces
Variants

std:: make_error_code (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_code
Helper classes
Definiert im Header <future>
(seit C++11)

Konstruiert ein std::error_code -Objekt aus einem Wert vom Typ std::future_errc wie folgt:

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

Diese Funktion wird vom Konstruktor von std::error_code aufgerufen, wenn ein std::future_errc Argument übergeben wird.

Inhaltsverzeichnis

Parameter

e - Fehlercodenummer

Rückgabewert

Ein Wert vom Typ std::error_code , der die Fehlercodenummer aus e enthält, assoziiert mit der Fehlerkategorie "future" .

Beispiel

Siehe auch

(C++11)
enthält einen plattformabhängigen Fehlercode
(Klasse)
identifiziert die Future-Fehlercodes
(Enumeration)
erstellt einen Fehlercodewert für die errc -Enumeration e
(Funktion)
konstruiert einen iostream-Fehlercode
(Funktion)