operator<<(std::thread::id) - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

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

From cppreference.com
< cpp‎ | thread‎ | thread‎ | id

template< class CharT, class Traits > std::basic_ostream<CharT,Traits>& operator<<( std::basic_ostream<CharT,Traits>&& ost, thread::id id ); |  | (since C++11)

Writes a textual representation of a thread identifier `id` to the output stream `ost`.

If two thread identifiers compare equal, they have identical textual representations; if they do not compare equal, their representations are distinct.

### [edit] Parameters

ost | - | output stream to insert the data into
id | - | thread identifier

### [edit] Return value

`ost`

### [edit] Exceptions

(none)

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/thread/thread/id/operator_ltlt&oldid=62985"