//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // class thread::id // template // basic_ostream& // operator<<(basic_ostream& out, thread::id id); #include #include #include int main() { std::thread::id id0 = std::this_thread::get_id(); std::ostringstream os; os << id0; }