---
name: "std::thread_id"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/std::thread_id/3cxx"
---

# std::thread\_id(3cxx)

## NAME

std::thread::id

## SYNOPSIS

`#include <thread>`

### Public Member Functions

**id** (native\_handle\_type **\_\_id**)\

### Friends

**struct** **hash\< id \>**\
 bool **operator\<** (**id** \_\_x, **id** \_\_y) noexcept\
 template\<**class** \_CharT , **class** \_Traits \> **basic\_ostream**\< \_CharT, \_Traits \> & **operator\<\<** (**basic\_ostream**\< \_CharT, \_Traits \> &**\_\_out**, **id** **\_\_id**)\
 bool **operator==** (**id** \_\_x, **id** \_\_y) noexcept\
 **class** **thread**\

### Related Symbols

(Note that these are not member symbols.)  bool **operator==** (**thread::id** \_\_x, **thread::id** \_\_y) noexcept\

bool **operator!=** (**thread::id** \_\_x, **thread::id** \_\_y) noexcept\
 bool **operator\<** (**thread::id** \_\_x, **thread::id** \_\_y) noexcept\
 bool **operator\<=** (**thread::id** \_\_x, **thread::id** \_\_y) noexcept\
 bool **operator\>** (**thread::id** \_\_x, **thread::id** \_\_y) noexcept\
 bool **operator\>=** (**thread::id** \_\_x, **thread::id** \_\_y) noexcept\
 template\<**class** \_CharT , **class** \_Traits \> **basic\_ostream**\< \_CharT, \_Traits \> & **operator\<\<** (**basic\_ostream**\< \_CharT, \_Traits \> &**\_\_out**, **thread::id** **\_\_id**)\

## Detailed Description

A std::thread::id is a unique identifier for a thread.

**Since**

C++11

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
