[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/thread/thread/id [Back]  [Original]

std::thread::id cppreference.com
cppreference.com

std::thread::id

cppreference.com

<metanoindex/>

 
C++
(C++20)
(C++20)
(C++11)
(C++20)
/
(C++11)
(C++11)
(C++11)
(C++17)
 
(C++11)
(C++20)
(C++20)
this_thread
(C++11)
(C++11)
(C++11)
(C++11)
(C++20)
(C++11)( C++20)
(C++11)( C++20)
(C++11)( C++20)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
(C++11)
(C++20)
(C++20)
(C++11)
(C++11)
(C++11)
(C++11)
 
 
 
<tbody> </tbody>
class thread::id;
( C++11)
thread::id , , std::thread .
:
The class thread::id is a lightweight, trivially copyable class that serves as a unique identifier of std::thread objects.
Google.
. .
, . , std::thread::id .
:
Instances of this class may also hold the special distinct value that does not represent any thread. Once a thread has finished, the value of std::thread::id may be reused by another thread.
Google.
. .
, .
:
This class is designed for use as key in associative containers, both ordered and unordered.
Google.
. .

-

,
:
constructs an id that does not represent a thread
Google.
. .

(public -)

,

thread::id
:
compares two thread::id objects
Google.
. .

()
thread::id
:
serializes a thread::id object
Google.
. .

( )

STD ::
:
specializes std::hash
Google.
. .

( )

.


(public - std::{{{1}}}) []

Web Proxy Viewer  |  New URL  |  Original Page