std::future_error:: future_error
From cppreference.net
<
cpp
|
thread
|
future error
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::future_error
| Member functions | ||||
|
future_error::future_error
|
||||
|
future_error
(
const
future_error
&
other
)
noexcept
;
|
(1) | (depuis C++11) |
|
explicit
future_error
(
std::
future_errc
ec
)
;
|
(2) | (depuis C++17) |
1)
Constructeur de copie. Initialise le contenu du nouvel objet
future_error
avec celui de
other
. Si
*
this
et
other
ont tous deux le type dynamique
std::future_error
alors
std::
strcmp
(
what
(
)
, other.
what
(
)
)
==
0
.
Paramètres
| other | - |
autre objet
future_error
à copier
|
| ec | - | code d'erreur |
Notes
Il n'existe aucun moyen conforme aux standards pour l'utilisateur de construire un
future_error
autrement qu'en copiant un autre
future_error
avant C++17. C++11 et C++14 décrivent un constructeur public exposition-only prenant un
std::error_code
, et certaines implémentations fournissent un tel constructeur.