std::error_category:: error_category
From cppreference.net
<
cpp
|
error
|
error category
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Diagnostics library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::error_category
| Member functions | ||||
|
error_category::error_category
|
||||
|
(until C++20)
(until C++20)
(C++20)
|
|
constexpr
error_category
(
)
noexcept
;
|
(1) | (depuis C++11) |
|
error_category
(
const
error_category
&
)
=
delete
;
|
(2) | (depuis C++11) |
1)
Construit l'objet de catégorie d'erreur.
2)
Le constructeur de copie est supprimé.
error_category
n'est ni
MoveConstructible
ni
CopyConstructible
.
Paramètres
(aucun)
Rapports de défauts
Les rapports de défauts modifiant le comportement suivants ont été appliqués rétroactivement aux normes C++ précédemment publiées.
| DR | Appliqué à | Comportement publié | Comportement corrigé |
|---|---|---|---|
| LWG 2145 | C++11 |
error_category
n'était pas constructible
|
constructeur par défaut ajouté |