Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/error/error condition/hash"

From cppreference.com
m (link to ja)
m
 
(2 intermediate revisions by 2 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|ja|zh}}
+
{{langlinks|ja|zh}}

Latest revision as of 22:46, 21 March 2023

 
 
Utilities library
General utilities
Relational operators (deprecated in C++20)
 
 
 
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.