Namespaces
Variants
Views
Actions

std::hash (std::thread::id)

From cppreference.com
< cpp‎ | thread‎ | thread‎ | id
Revision as of 19:28, 2 November 2012 by P12bot (Talk | contribs)

 
 
Thread support library
Threads
(C++11)
this_thread namespace
(C++11)
(C++11)
(C++11)
Mutual exclusion
(C++11)
Generic lock management
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
Condition variables
(C++11)
Futures
(C++11)
(C++11)
(C++11)
(C++11)
 
 
std::thread::id
Member functions
Non-member functions
Helper classes
std::hash<std::thread::id>
 

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <thread>
</td>

<td></td> <td></td> <tr class="t-dcl ">

<td >
template<> struct hash<std::thread::id>;
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

The template specialization of std::hash for the std::thread::id class allows users to obtain hashes of the identifiers of threads.

Example

See also

(C++11)
hash function object
(class template) [edit]