just::thread Complete C++ Standard Thread Library by Just Software Solutions

Documentation Home >> Headers >> <thread> Header >> std::this_thread >> std::this_thread::get_id Non Member Function

Return a value of type std::thread::id that identifies the current thread of execution.

thread::id get_id();

Returns:

An instance of std::thread::id that identifies the current thread.

Throws:

Nothing

Header

#include <thread>

See Also