std::hash<std::error_code>
From cppreference.com
< cpp | error | error code
C++
Utilities library
Type support (basic types, RTTI, type traits) | |||||||||||||||||||||
Dynamic memory management | |||||||||||||||||||||
Error handling | |||||||||||||||||||||
Program utilities | |||||||||||||||||||||
Variadic functions | |||||||||||||||||||||
Library feature-test macros | |||||||||||||||||||||
Date and time | |||||||||||||||||||||
Function objects | |||||||||||||||||||||
(C++11) | |||||||||||||||||||||
(C++11) | |||||||||||||||||||||
(C++14) | |||||||||||||||||||||
Relational operators (deprecated in C++20) | |||||||||||||||||||||
Comparisons (C++20) | |||||||||||||||||||||
Common vocabulary types | |||||||||||||||||||||
| |||||||||||||||||||||
Swap, forward and move | |||||||||||||||||||||
(C++14) | |||||||||||||||||||||
(C++11) | |||||||||||||||||||||
(C++11) | |||||||||||||||||||||
(C++11) | |||||||||||||||||||||
Elementary string conversions | |||||||||||||||||||||
(C++17) | |||||||||||||||||||||
(C++17) | |||||||||||||||||||||
(C++17) | |||||||||||||||||||||
Type operations | |||||||||||||||||||||
(C++11) | |||||||||||||||||||||
(C++17) | |||||||||||||||||||||
(C++17) |
Error handling
|
|
std::error_code
Member functions | ||||
Modifiers | ||||
Observers | ||||
Non-member functions | ||||
Helper classes | ||||
hash<std::error_code> |
Defined in header <system_error>
|
||
template<> struct hash<error_code>; |
(since C++11) | |
The template specialization of std::hash for std::error_code allows users to obtain hashes of objects of type std::error_code.