std::this_thread::get_id (3) - Linux Manuals
std::this_thread::get_id: std::this_thread::get_id
NAME
std::this_thread::get_id - std::this_thread::get_id
Synopsis
Defined in header <thread>
std::thread::id get_id() noexcept; (since C++11)
Returns the id of the current thread.
Parameters
(none)
Return value
id of the current thread
Example
// Run this code
Possible output:
See also
get_id (public member function of std::thread)