1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // <thread>
11 
12 // class thread::id
13 
14 // template<class charT, class traits>
15 // basic_ostream<charT, traits>&
16 // operator<<(basic_ostream<charT, traits>& out, thread::id id);
17 
18 #include <thread>
19 #include <sstream>
20 #include <cassert>
21 
main()22 int main()
23 {
24     std::thread::id id0 = std::this_thread::get_id();
25     std::ostringstream os;
26     os << id0;
27 }
28