Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 956 Bytes

hash-structure-stl.md

File metadata and controls

34 lines (25 loc) · 956 Bytes
description title ms.date f1_keywords ms.assetid
Learn more about: hash Structure (C++ Standard Library)
hash Structure (C++ Standard Library)
11/04/2016
thread/std::hash
4a8bf5bc-4334-4070-936b-98585f8a073b

hash Structure (C++ Standard Library)

Defines a member function that returns a value that's uniquely determined by Val. The member function defines a hash function that's suitable for mapping values of type thread::id to a distribution of index values.

Syntax

template <>
struct hash<thread::id> :
    public unary_function<thread::id, size_t>
{
    size_t operator()(thread::id Val) const;

};

Requirements

Header: <thread>

Namespace: std

See also

Header Files Reference
<thread>
unary_function Struct