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::idthat identifies the current thread.- Throws:
Nothing
Header
#include <thread>