Difference between revisions of "cpp/error/error condition/hash"
From cppreference.com
< cpp | error | error condition
m (link to zh) |
m |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
{{cpp/error/error_condition/navbar}} | {{cpp/error/error_condition/navbar}} | ||
{{ddcl | header=system_error | since=c++17 | 1= | {{ddcl | header=system_error | since=c++17 | 1= | ||
− | template<> struct hash<error_condition>; | + | template<> struct hash<error_condition>; |
}} | }} | ||
The template specialization of {{lc|std::hash}} for {{lc|std::error_condition}} allows users to obtain hashes of objects of type {{lc|std::error_condition}}. | The template specialization of {{lc|std::hash}} for {{lc|std::error_condition}} allows users to obtain hashes of objects of type {{lc|std::error_condition}}. | ||
− | {{langlinks|zh}} | + | {{langlinks|zh}} |
Latest revision as of 22:46, 21 March 2023
Defined in header <system_error>
|
||
template<> struct hash<std::error_condition>; |
(since C++17) | |
The template specialization of std::hash for std::error_condition allows users to obtain hashes of objects of type std::error_condition.