Namespaces
Variants
Views
Actions

std::this_thread::get_id

From cppreference.com
Defined in header <thread>
std::thread::id get_id();
(since C++11)

Returns the id of the current thread.

Contents

[edit] Parameters

(none)

[edit] Return value

id if the current thread.

[edit] Example

[edit] See also

returns the id of the thread
(public member function of std::thread) [edit]