C++ Thread Library - Id



Description

It is a values of this type are returned by thread::get_id and this_thread::get_id to identify threads.

Declaration

Following is the declaration for std::thread::id.

class thread::id;

C++11

class thread::id;

Parameters

none

Return Value

none

Non-member function overloads

bool operator== (thread::id lhs, thread::id rhs) noexcept;
bool operator!= (thread::id lhs, thread::id rhs) noexcept;
bool operator< (thread::id lhs, thread::id rhs) noexcept;
bool operator>= (thread::id lhs, thread::id rhs) noexcept;
bool operator> (thread::id lhs, thread::id rhs) noexcept;
bool operator>= (thread::id lhs, thread::id rhs) noexcept;
thread.htm
Advertisements