Namespaces
Variants
Views
Actions

operator==,!=,<,<=,>,>=(std::thread::id)

From cppreference.com
< cpp‎ | thread‎ | thread‎ | id
Revision as of 19:26, 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
operator==operator!=operator<operator<=operator>operator>=
Helper classes
 

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

<td >
bool operator==( thread::id lhs, thread::id rhs );
</td>

<td > (1) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
bool operator!=( thread::id lhs, thread::id rhs );
</td>

<td > (2) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
bool operator<( thread::id lhs, thread::id rhs );
</td>

<td > (3) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
bool operator<=( thread::id lhs, thread::id rhs );
</td>

<td > (4) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
bool operator>( thread::id lhs, thread::id rhs );
</td>

<td > (5) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
bool operator>=( thread::id lhs, thread::id rhs );
</td>

<td > (6) </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Compares two thread identifiers.

1-2) Checks whether lhs and rhs represent either the same thread, or no thread.
3-6) Compares lhs and rhs in such a way, that lhs and rhs are totally ordered.

Contents

Parameters

lhs, rhs - thread identifiers to compare

Return value

true whether the corresponding relation holds, false otherwise.

Exceptions

noexcept specification:  
noexcept
  

Complexity

Constant.