std::thread::id(3cxx)

🌸 NAME 🌸

bestie, this page is all about std::thread::id β€” manual name std::thread::id(3cxx) β€” and it’s literally the type that says β€œI’m a unique identifier for a thread.” Periodt. πŸ’…

✨ SYNOPSIS ✨

okay so first you include:

#include <thread>

πŸŽ€ Public Member Functions πŸŽ€

  • id (native_handle_type __id) β€” this is the one public member function listed here. No extra lore, just this exact signature. 🫢

🫢 Friends 🫢

these are the friends, bestie:

  • struct hash< id > β€” the hash friend.
  • template<class _CharT , class _Traits > basic_ostream< _CharT, _Traits > & operator<< (basic_ostream< _CharT, _Traits > &__out, id __id) β€” the stream-output operator friend.
  • strong_ordering operator<=> (id __x, id __y) noexcept β€” the spaceship comparison friend.
  • bool operator== (id __x, id __y) noexcept β€” the equality friend.
  • class thread β€” the thread friend.

quick note, bestie: these are not member symbols. The original says β€œ(Note that these are not member symbols.)” and we’re keeping that energy.

  • bool operator== (thread::id __x, thread::id __y) noexcept β€” equality for thread::id.
  • strong_ordering operator (thread::id __x, thread::id __y) noexcept β€” exactly as listed; yes, it says operator, and I’m not editing it. πŸ‘€
  • template<class _CharT , class _Traits > basic_ostream< _CharT, _Traits > & operator<< (basic_ostream< _CharT, _Traits > &__out, thread::id __id) β€” stream-output operator for thread::id.

πŸ¦‹ Detailed Description πŸ¦‹

A std::thread::id is a unique identifier for a thread. That’s the whole mood. πŸ’…

Since: C++11 ✨

🫢 Author 🫢

This page was generated automatically by Doxygen for libstdc++ from the source code. Not me handwriting it, bestie β€” Doxygen ate and left no crumbs. 😭

xoxo, libstdc++ πŸ’– β€” signed off with std::thread::id(3cxx), and ngl there’s no date listed in the footer, so that’s the whole source/version-and-date tea. 🫢

πŸ“¦ where this page comes from