operator<<(std::thread::id)

< cpp‎ | thread‎ | thread‎ | id
 
 
线程支持库
线程
(C++11)
(C++20)
(C++20)
this_thread 命名空间
(C++11)
(C++11)
(C++11)
互斥
(C++11)
通用锁管理
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
条件变量
(C++11)
信号量
闩与屏障
(C++20)
(C++20)
future
(C++11)
(C++11)
(C++11)
(C++11)
 
 
std::thread::id
成员函数
非成员函数
(C++20 前)(C++20 前)(C++20 前)(C++20 前)(C++20 前)(C++20)
operator<<
辅助类
 
template< class CharT, class Traits >

std::basic_ostream<CharT,Traits>&

    operator<<( std::basic_ostream<CharT,Traits>& ost, thread::id id );
(C++11 起)

写线程标识符 id 的文本表示到输出流 ost

若二个线程标识符表示相等,则它们拥有等同的文本表示;若它们比较不相等,则其表示有别。

参数

ost - 要插入数据的输出流
id - 线程标识符

返回值

ost

异常

(无)