GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing cplusplus.com — std::unordered_map::hash_function Reference
<unordered_map>
unordered_map
public member type
<unordered_map>
std::unordered_map::hash_functionhasher hash_function() const; Get hash function
The hash function is a unary function that takes an object of type key_type as argument and returns a unique value of type size_t based on it. It is adopted by the container on construction (see unordered_map's constructor for more info). By default, it is the default hashing function for the corresponding key type: hash<key_type>. ParametersnoneReturn ValueThe hash function.Member type hasher is the type of the hash function used by the container, defined in unordered_map as an alias of its third template parameter (Hash). Example
Possible output:
Notice how two similar strings yield quite different hash values. ComplexityConstant.Iterator validityNo changes.See also
Home page | Privacy policy
© cplusplus.com, 2000-2026 - All rights reserved - v3.3.4s Spotted an error? contact us | |||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |