---
name: "std::thread_id"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/std::thread_id"
---

# std::thread\_id(3)

## NAME

std::thread::id

## SYNOPSIS

\#include \<thread\>

### Public Member Functions

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

### Friends

struct **hash\< id \>**\
 template\<class \_CharT, class \_Traits\> **basic\_ostream**\< \_CharT, \_Traits \> & **operator\<\<** (**basic\_ostream**\< \_CharT, \_Traits \> &\_\_out, id \_\_id)\
 strong\_ordering **operator\<=\>** (id \_\_x, id \_\_y) noexcept\
 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\

strong\_ordering **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.
