<thread>
運算子
operator!=
operator>
operator>=
operator<
operator<<
operator<=
operator==
operator>=
判斷某個 thread::id
物件是否大於或等於另一個。
bool operator>= (
thread::id Left,
thread::id Right) noexcept
參數
Left
左 thread::id
物件。
Right
右 thread::id
物件。
傳回值
!(Left < Right)
備註
這個函式不會擲回任何例外狀況。
operator>
判斷某個 thread::id
物件是否大於另一個。
bool operator> (
thread::id Left,
thread::id Right) noexcept
參數
Left
左 thread::id
物件。
Right
右 thread::id
物件。
傳回值
Right < Left
備註
這個函式不會擲回任何例外狀況。
operator<=
判斷某個 thread::id
物件是否小於或等於另一個。
bool operator<= (
thread::id Left,
thread::id Right) noexcept
參數
Left
左 thread::id
物件。
Right
右 thread::id
物件。
傳回值
!(Right < Left)
備註
這個函式不會擲回任何例外狀況。
operator<
判斷某個 thread::id
物件是否小於另一個。
bool operator<(
thread::id Left,
thread::id Right) noexcept
參數
Left
左 thread::id
物件。
Right
右 thread::id
物件。
傳回值
true
如果 Left 在 總順序中位於 Right 之前,則為 , false
否則為 。
備註
運算子會定義所有 thread::id
物件的總排序。 這些物件可用來做為關聯容器中的索引鍵。
這個函式不會擲回任何例外狀況。
operator!=
比較兩個 thread::id
物件是否不相等。
bool operator!= (
thread::id Left,
thread::id Right) noexcept
參數
Left
左 thread::id
物件。
Right
右 thread::id
物件。
傳回值
!(Left == Right)
備註
這個函式不會擲回任何例外狀況。
operator==
比較兩個 thread::id
物件是否相等。
bool operator== (
thread::id Left,
thread::id Right) noexcept
參數
Left
左 thread::id
物件。
Right
右 thread::id
物件。
傳回值
如果這兩個物件代表執行的同一個執行緒,或者這兩個物件都未代表執行的執行緒,即為 true
,否則為 false
。
備註
這個函式不會擲回任何例外狀況。
operator<<
將 thread::id
物件的文字表示插入資料流。
template <class Elem, class Tr>
basic_ostream<Elem, Tr>& operator<<(
basic_ostream<Elem, Tr>& Ostr, thread::id Id);
參數
Ostr
basic_ostream 物件。
Id
thread::id
物件。
傳回值
奧斯特
備註
此函式會將標識碼插入 Ostr。
如果有兩個 thread::id
物件要比較是否相等,則這些物件插入的文字表示會一樣。