Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 873 Bytes

hash-structure.md

File metadata and controls

34 lines (26 loc) · 873 Bytes
descriptiontitlems.datef1_keywordsms.assetid
Learn more about: hash Structure
hash Structure
11/04/2016
typeindex/std::hash
e5a41202-ef3b-45d0-b3a7-4c2dbdc0487a

hash Structure

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.

Syntax

template <> structhash<type_index> : public unary_function<type_index, size_t> { // hashes a typeinfo objectsize_toperator()(type_index val) const; };

Specialized Types

<system_error>

template <classT> structhash; template <> structhash<error_code>; template <> structhash<error_condition>;

See also

<typeindex>

close