get_id功能

唯一标识当前执行线程。

thread::id this_thread::get_id() _NOEXCEPT;

返回值

唯一标识当前执行线程类型 thread::id 的对象。

要求

**标头:**线程

**命名空间:**std

请参见

参考

<thread>

其他资源

标头文件