hash Structure (STL)
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at hash Structure (C++ Standard Library)| Microsoft Docs.
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.
template <>
struct hash<thread::id> :
public unary_function<thread::id, size_t>
{
size_t operator()(thread::id Val) const;
};
Header: thread
Namespace: std
Show: