From Jason Turner

[thread.thread.id]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpojbwk_u2/{from.md → to.md} +10 -11
tmp/tmpojbwk_u2/{from.md → to.md} RENAMED
@@ -27,19 +27,19 @@ namespace std {
27
  An object of type `thread::id` provides a unique identifier for each
28
  thread of execution and a single distinct value for all `thread` objects
29
  that do not represent a thread of execution ([[thread.thread.class]]).
30
  Each thread of execution has an associated `thread::id` object that is
31
  not equal to the `thread::id` object of any other thread of execution
32
- and that is not equal to the `thread::id` object of any `std::thread`
33
- object that does not represent threads of execution.
34
 
35
  `thread::id` shall be a trivially copyable class (Clause  [[class]]).
36
  The library may reuse the value of a `thread::id` of a terminated thread
37
  that can no longer be joined.
38
 
39
- Relational operators allow `thread::id` objects to be used as keys in
40
- associative containers.
41
 
42
  ``` cpp
43
  id() noexcept;
44
  ```
45
 
@@ -70,40 +70,39 @@ described in  [[alg.sorting]].
70
 
71
  ``` cpp
72
  bool operator<=(thread::id x, thread::id y) noexcept;
73
  ```
74
 
75
- *Returns:* `!(y < x)`
76
 
77
  ``` cpp
78
  bool operator>(thread::id x, thread::id y) noexcept;
79
  ```
80
 
81
- *Returns:* `y < x`
82
 
83
  ``` cpp
84
  bool operator>=(thread::id x, thread::id y) noexcept;
85
  ```
86
 
87
- *Returns:* `!(x < y)`
88
 
89
  ``` cpp
90
  template<class charT, class traits>
91
  basic_ostream<charT, traits>&
92
- operator<< (basic_ostream<charT, traits>&& out, thread::id id);
93
  ```
94
 
95
  *Effects:* Inserts an unspecified text representation of `id` into
96
  `out`. For two objects of type `thread::id` `x` and `y`, if `x == y` the
97
  `thread::id` objects shall have the same text representation and if
98
  `x != y` the `thread::id` objects shall have distinct text
99
  representations.
100
 
101
- *Returns:* `out`
102
 
103
  ``` cpp
104
  template <> struct hash<thread::id>;
105
  ```
106
 
107
- The template specialization shall meet the requirements of class
108
- template `hash` ([[unord.hash]]).
109
 
 
27
  An object of type `thread::id` provides a unique identifier for each
28
  thread of execution and a single distinct value for all `thread` objects
29
  that do not represent a thread of execution ([[thread.thread.class]]).
30
  Each thread of execution has an associated `thread::id` object that is
31
  not equal to the `thread::id` object of any other thread of execution
32
+ and that is not equal to the `thread::id` object of any `thread` object
33
+ that does not represent threads of execution.
34
 
35
  `thread::id` shall be a trivially copyable class (Clause  [[class]]).
36
  The library may reuse the value of a `thread::id` of a terminated thread
37
  that can no longer be joined.
38
 
39
+ [*Note 1*: Relational operators allow `thread::id` objects to be used
40
+ as keys in associative containers. — *end note*]
41
 
42
  ``` cpp
43
  id() noexcept;
44
  ```
45
 
 
70
 
71
  ``` cpp
72
  bool operator<=(thread::id x, thread::id y) noexcept;
73
  ```
74
 
75
+ *Returns:* `!(y < x)`.
76
 
77
  ``` cpp
78
  bool operator>(thread::id x, thread::id y) noexcept;
79
  ```
80
 
81
+ *Returns:* `y < x`.
82
 
83
  ``` cpp
84
  bool operator>=(thread::id x, thread::id y) noexcept;
85
  ```
86
 
87
+ *Returns:* `!(x < y)`.
88
 
89
  ``` cpp
90
  template<class charT, class traits>
91
  basic_ostream<charT, traits>&
92
+ operator<< (basic_ostream<charT, traits>& out, thread::id id);
93
  ```
94
 
95
  *Effects:* Inserts an unspecified text representation of `id` into
96
  `out`. For two objects of type `thread::id` `x` and `y`, if `x == y` the
97
  `thread::id` objects shall have the same text representation and if
98
  `x != y` the `thread::id` objects shall have distinct text
99
  representations.
100
 
101
+ *Returns:* `out`.
102
 
103
  ``` cpp
104
  template <> struct hash<thread::id>;
105
  ```
106
 
107
+ The specialization is enabled ([[unord.hash]]).
 
108