次の方法で共有


operator<< 演算子 ()<thread>

ストリームに 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.

解説

この関数は Ostrに Id を挿入します。

thread::id の 2 種類のオブジェクトが等しいを比較する場合、これらのオブジェクト挿入されるテキストの表示は同じです。

必要条件

ヘッダー: のスレッド

名前空間: std

参照

関連項目

<thread>

その他の技術情報

ヘッダー ファイル