description | title | ms.date | f1_keywords | ms.assetid | |
---|---|---|---|---|---|
Learn more about: hash Structure | hash Structure | 11/04/2016 |
| e5a41202-ef3b-45d0-b3a7-4c2dbdc0487a |
The class template defines its method as returning val.hash_code()
. The method defines a hash function that is used to map values of type type_index to a distribution of index values.
template <> structhash<type_index> : public unary_function<type_index, size_t> { // hashes a typeinfo objectsize_toperator()(type_index val) const; };
template <classT> structhash; template <> structhash<error_code>; template <> structhash<error_condition>;