Repository navigation
Expand file tree
/
Copy pathrss.xml
More file actions
217 lines (168 loc) · 9.76 KB
/
Copy pathrss.xml
File metadata and controls
217 lines (168 loc) · 9.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>cpprefjp - C++日本語リファレンス</title>
<link href="https://cpprefjp.github.io" />
<updated>2026-11-17T22:33:13.502867</updated>
<id>55f8a7f2-e3eb-4f6e-b94d-eb9c1a9fb28d</id>
<entry>
<title>auto(x)による一時オブジェクトへの変換 [P0849R8] -- fixing auto_cast wrong sample</title>
<link href="https://cpprefjp.github.io/lang/cpp23/auto_cast.html"/>
<id>cfea443aaa0fa749dc1d005f06c733c3dd5e4db0:lang/cpp23/auto_cast.md</id>
<updated>2026-11-17T14:16:54+09:00</updated>
<summary type="html"><pre><code>diff --git a/lang/cpp23/auto_cast.md b/lang/cpp23/auto_cast.md
index a4a97c5ed..580270c5a 100644
--- a/lang/cpp23/auto_cast.md
+++ b/lang/cpp23/auto_cast.md
@@ -39,9 +39,9 @@ int x = 0;
const int&amp; r = x;
int a[3]{};
-auto(r); // int型のprvalue
-auto(a); // int*型のprvalue
-auto{x}; // int型のprvalue。auto(x)と同じ
+(void)auto(r); // int型のprvalue
+(void)auto(a); // int*型のprvalue
+auto{x}; // int型のprvalue。auto(x)と同じ
```
- `auto()`のように初期化子が空の場合と、`auto{a, b}`のように要素が2つ以上ある場合は型を推論できないため、不適格となる
</code></pre></summary>
<author>
<name>rotarymars</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>nullptr [N2431] -- fixing nullptr wrong note</title>
<link href="https://cpprefjp.github.io/lang/cpp11/nullptr.html"/>
<id>e08262caf13dfc72f3b15fd80fb42bdc345289cf:lang/cpp11/nullptr.md</id>
<updated>2026-11-17T14:12:37+09:00</updated>
<summary type="html"><pre><code>diff --git a/lang/cpp11/nullptr.md b/lang/cpp11/nullptr.md
index 54e2f83b5..570701a30 100644
--- a/lang/cpp11/nullptr.md
+++ b/lang/cpp11/nullptr.md
@@ -44,13 +44,15 @@ C++98まで、ヌルポインタを表すために`0`数値リテラルや[`NULL
- `bool operator==(nullptr_t, nullptr_t);`
- `bool operator!=(nullptr_t, nullptr_t);`
-- `bool operator&lt;(nullptr_t, nullptr_t);`
-- `bool operator&lt;=(nullptr_t, nullptr_t);`
-- `bool operator&gt;(nullptr_t, nullptr_t);`
-- `bool operator&gt;=(nullptr_t, nullptr_t);`
+- `bool operator&lt;(nullptr_t, nullptr_t);` (C++14で削除)
+- `bool operator&lt;=(nullptr_t, nullptr_t);` (C++14で削除)
+- `bool operator&gt;(nullptr_t, nullptr_t);` (C++14で削除)
+- `bool operator&gt;=(nullptr_t, nullptr_t);` (C++14で削除)
2つの[`nullptr_t`][nullptr_t]型を比較した場合、`==`、`&lt;=`、`&gt;=`演算子の結果は`true`となり、それ以外の演算子は`false`となる。
+C++14では、[CWG Issue 1512](https://cplusplus.github.io/CWG/issues/1512.html) (N3624) の解決により、[`nullptr_t`][nullptr_t]型同士の`&lt;`、`&lt;=`、`&gt;`、`&gt;=`による比較は削除され、`==`と`!=`のみが可能となった。この変更は欠陥報告 (DR) として扱われるため、現在のGCCやClangはC++11モードでもこれらの比較をコンパイルエラーとする。
+
## 例
```cpp example
@@ -133,3 +135,6 @@ private:
- [N1601 A name for the null pointer: `nullptr` (revision 2)](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1601.pdf)
- [N2214 A name for the null pointer: `nullptr` (revision 3)](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2214.pdf)
- [N2431 A name for the null pointer: `nullptr` (revision 4)](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2431.pdf)
+- [CWG Issue 1512. Pointer comparison vs qualification conversions](https://cplusplus.github.io/CWG/issues/1512.html)
+- [N3624 Core Issue 1512: Pointer comparison vs qualification conversions (revision 3)](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3624.html)
+ - C++14で、`nullptr_t`型同士の関係演算 (`&lt;`、`&lt;=`、`&gt;`、`&gt;=`) が削除された
</code></pre></summary>
<author>
<name>rotarymars</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>append_range -- fixing basic_string::append_range wrong signature</title>
<link href="https://cpprefjp.github.io/reference/string/basic_string/append_range.html"/>
<id>c5b99806c4312218cb103c0b82e0370b3e363523:reference/string/basic_string/append_range.md</id>
<updated>2026-11-17T14:09:03+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/string/basic_string/append_range.md b/reference/string/basic_string/append_range.md
index 698ae1e40..5ba9a5248 100644
--- a/reference/string/basic_string/append_range.md
+++ b/reference/string/basic_string/append_range.md
@@ -7,7 +7,7 @@
```cpp
template &lt;container-compatible-range&lt;charT&gt; R&gt;
-constexpr void append_range(R&amp;&amp; rg); // C++23
+constexpr basic_string&amp; append_range(R&amp;&amp; rg); // C++23
```
## 概要
@@ -15,7 +15,13 @@ Rangeの要素を末尾へ追加する。
## 効果
-[`append`](append.md)`(basic_string(`[`from_range`](../../ranges/from_range_t.md)`,` [`forward`](../../utility/forward.md)`&lt;R&gt;(rg),` [`get_allocator()`](get_allocator.md)`));`
+以下と等価:
+
+`return` [`append`](append.md)`(basic_string(`[`from_range`](../../ranges/from_range_t.md)`,` [`forward`](../../utility/forward.md)`&lt;R&gt;(rg),` [`get_allocator()`](get_allocator.md)`));`
+
+
+## 戻り値
+`*this`
## 例
</code></pre></summary>
<author>
<name>rotarymars</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>try_lock_until -- fixing shared_lock::try_lock_until wrong note</title>
<link href="https://cpprefjp.github.io/reference/shared_mutex/shared_lock/try_lock_until.html"/>
<id>dda4b19dc37e4c7c45b0d6167ed6628af4e3bbfc:reference/shared_mutex/shared_lock/try_lock_until.md</id>
<updated>2026-11-17T14:00:01+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/shared_mutex/shared_lock/try_lock_until.md b/reference/shared_mutex/shared_lock/try_lock_until.md
index 8ce792624..4636fbd71 100644
--- a/reference/shared_mutex/shared_lock/try_lock_until.md
+++ b/reference/shared_mutex/shared_lock/try_lock_until.md
@@ -21,22 +21,22 @@ bool try_lock_until(const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time);
## 効果
```cpp
-pm-&gt;try_lock_until_shared(abs_time);
+pm-&gt;try_lock_shared_until(abs_time);
```
※`pm`はメンバ変数として保持している、ミューテックスオブジェクトへのポインタ
## 事後条件
-[`owns_lock()`](owns_lock.md)の値が、`pm-&gt;try_lock_until_shared(abs_time)`の戻り値になること
+[`owns_lock()`](owns_lock.md)の値が、`pm-&gt;try_lock_shared_until(abs_time)`の戻り値になること
## 戻り値
-`pm-&gt;try_lock_until_shared(abs_time)`の戻り値が返る
+`pm-&gt;try_lock_shared_until(abs_time)`の戻り値が返る
## 例外
-この関数は、`pm-&gt;try_lock_until_shared()` 関数内で投げられうるあらゆる例外を投げる可能性がある。
+この関数は、`pm-&gt;try_lock_shared_until()` 関数内で投げられうるあらゆる例外を投げる可能性がある。
そのほかに、以下のerror conditionを持つ[`system_error`](/reference/system_error/system_error.md)例外オブジェクトを送出する可能性がある:
</code></pre></summary>
<author>
<name>rotarymars</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>try_lock_for -- fixing shared_lock::try_lock_for wrong note</title>
<link href="https://cpprefjp.github.io/reference/shared_mutex/shared_lock/try_lock_for.html"/>
<id>73c4bd5d1e4f9d2033619a58910f36209b670609:reference/shared_mutex/shared_lock/try_lock_for.md</id>
<updated>2026-11-17T13:56:59+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/shared_mutex/shared_lock/try_lock_for.md b/reference/shared_mutex/shared_lock/try_lock_for.md
index 7966da46d..d3787863b 100644
--- a/reference/shared_mutex/shared_lock/try_lock_for.md
+++ b/reference/shared_mutex/shared_lock/try_lock_for.md
@@ -16,22 +16,22 @@ bool try_lock_for(const chrono::duration&lt;Rep, Period&gt;&amp; rel_time);
## 効果
```cpp
-pm-&gt;try_lock_for_shared(rel_time);
+pm-&gt;try_lock_shared_for(rel_time);
```
※`pm`はメンバ変数として保持している、ミューテックスオブジェクトへのポインタ
## 事後条件
-[`owns_lock()`](owns_lock.md)の値が、`pm-&gt;try_lock_for_shared(rel_time)`の戻り値になること
+[`owns_lock()`](owns_lock.md)の値が、`pm-&gt;try_lock_shared_for(rel_time)`の戻り値になること
## 戻り値
-`pm-&gt;try_lock_for_shared(rel_time)`の戻り値が返る
+`pm-&gt;try_lock_shared_for(rel_time)`の戻り値が返る
## 例外
-この関数は、`pm-&gt;try_lock_for_shared()` 関数内で投げられうるあらゆる例外を投げる可能性がある。
+この関数は、`pm-&gt;try_lock_shared_for()` 関数内で投げられうるあらゆる例外を投げる可能性がある。
そのほかに、以下のerror conditionを持つ[`system_error`](/reference/system_error/system_error.md)例外オブジェクトを送出する可能性がある:
</code></pre></summary>
<author>
<name>rotarymars</name>
<email>[email protected]</email>
</author>
</entry>
</feed>