Documentation Home >> Headers >> <thread> Header >> std::thread::id >> std::thread::id Stream Insertion Operator

Write a string representation of the std::thread::id value into the specified stream.

template<typename charT, typename traits>
basic_ostream<charT, traits>&
operator<< (
    basic_ostream<charT, traits>&& out,
    thread::id id);

Effects:

Inserts a string representation of the std::thread::id value into the specified stream.

Returns:

out

Throws:

Nothing

Note:

The format of the string representation is not specified. Instances of std::thread::id that compare equal have the same representation, and instances that are not equal will have distinct representations.

Header

#include <thread>

See Also