Template:cpp/thread/thread/get id

Returns a value of std identifying the thread associated with.

Parameters
(none)

Return value
A value of type std identifying the thread associated with. If there is no thread associated, default constructed std is returned.