STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
thread::id Class Reference

Public Member Functions

 id () _NOEXCEPT
 
template<class _Ch , class _Tr >
basic_ostream< _Ch, _Tr > & _To_text (basic_ostream< _Ch, _Tr > &_Str)
 

Private Member Functions

 id (_Thrd_id_t _Other_id)
 
size_t _Hash_id () const
 

Private Attributes

_Thrd_id_t _Id
 

Friends

struct hash< thread::id >
 
thread::id thread::get_id () const _NOEXCEPT
 
thread::id this_thread::get_id () _NOEXCEPT
 
bool operator== (thread::id _Left, thread::id _Right) _NOEXCEPT
 
bool operator< (thread::id _Left, thread::id _Right) _NOEXCEPT
 

Constructor & Destructor Documentation

thread::id::id ( )
inline
152  : _Id(0)
153  { // id for no thread
154  }
_Thrd_id_t _Id
Definition: thread:175
thread::id::id ( _Thrd_id_t  _Other_id)
inlineprivate
166  : _Id(_Other_id)
167  { // construct from unique id
168  }
_Thrd_id_t _Id
Definition: thread:175

Member Function Documentation

size_t thread::id::_Hash_id ( ) const
inlineprivate
171  { // hash bits to size_t value by pseudorandomizing transform
172  return (hash<_Thrd_id_t>()(_Id));
173  }
_Thrd_id_t _Id
Definition: thread:175
Definition: xstddef:367
template<class _Ch , class _Tr >
basic_ostream<_Ch, _Tr>& thread::id::_To_text ( basic_ostream< _Ch, _Tr > &  _Str)
inline
160  { // insert representation into stream
161  return (_Str << _Id);
162  }
_Thrd_id_t _Id
Definition: thread:175

Friends And Related Function Documentation

friend struct hash< thread::id >
friend
bool operator< ( thread::id  _Left,
thread::id  _Right 
)
friend
224  { // return true if _Left precedes _Right
225  return (_Left._Id < _Right._Id);
226  }
_Thrd_id_t _Id
Definition: thread:175
bool operator== ( thread::id  _Left,
thread::id  _Right 
)
friend
214  { // return true if _Left and _Right identify the same thread
215  return (_Left._Id == _Right._Id);
216  }
_Thrd_id_t _Id
Definition: thread:175
thread::id thread::get_id ( ) const
friend

Member Data Documentation

_Thrd_id_t thread::id::_Id
private

The documentation for this class was generated from the following file: