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
153  : _Id(0)
154  { // id for no thread
155  }
_Thrd_id_t _Id
Definition: thread:176
thread::id::id ( _Thrd_id_t  _Other_id)
inlineprivate
167  : _Id(_Other_id)
168  { // construct from unique id
169  }
_Thrd_id_t _Id
Definition: thread:176

Member Function Documentation

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

Friends And Related Function Documentation

friend struct hash< thread::id >
friend
bool operator< ( thread::id  _Left,
thread::id  _Right 
)
friend
225  { // return true if _Left precedes _Right
226  return (_Left._Id < _Right._Id);
227  }
_Thrd_id_t _Id
Definition: thread:176
bool operator== ( thread::id  _Left,
thread::id  _Right 
)
friend
215  { // return true if _Left and _Right identify the same thread
216  return (_Left._Id == _Right._Id);
217  }
_Thrd_id_t _Id
Definition: thread:176
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: