C++ 執行緒庫 - Id



描述

此型別的值由 thread::get_id 和 this_thread::get_id 返回,用於識別執行緒。

宣告

以下是 std::thread::id 的宣告。

class thread::id;

C++11

class thread::id;

引數

返回值

非成員函式過載

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
廣告

© . All rights reserved.