-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrss.xml
More file actions
336 lines (282 loc) · 15.3 KB
/
Copy pathrss.xml
File metadata and controls
336 lines (282 loc) · 15.3 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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
<?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-08-08T13:50:28.215172</updated>
<id>5688165e-97fe-461d-8306-bddb3dce37c3</id>
<entry>
<title>スコープ付き列挙型のusing宣言 [P1099R5] -- cpp20/using_enum: privateなネスト列挙型は外から参照できないためstructに変更</title>
<link href="https://cpprefjp.github.io/lang/cpp20/using_enum.html"/>
<id>5f143bc71fd0cf4bc6a85f2e115cc9afdc9cba26:lang/cpp20/using_enum.md</id>
<updated>2026-08-08T16:55:02+09:00</updated>
<summary type="html"><pre><code>diff --git a/lang/cpp20/using_enum.md b/lang/cpp20/using_enum.md
index e0a1b2076..927a87966 100644
--- a/lang/cpp20/using_enum.md
+++ b/lang/cpp20/using_enum.md
@@ -47,7 +47,7 @@ std::string_view to_string(rgba_color_channel channel) {
```cpp example
namespace ns {
- class foo {
+ struct foo {
enum bar {
A,
B,
</code></pre></summary>
<author>
<name>rotarymars</name>
<email>s.goto2050@gmail.com</email>
</author>
</entry>
<entry>
<title>formatter -- chrono/formatter: hh_mm_ssはクラステンプレートなので特殊化に引数が必要、出力例の番号とスペースを修正</title>
<link href="https://cpprefjp.github.io/reference/chrono/hh_mm_ss/formatter.html"/>
<id>ac073f0c4f34e6adbabf0116cb2571106598edd8:reference/chrono/hh_mm_ss/formatter.md</id>
<updated>2026-08-08T16:18:35+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/chrono/hh_mm_ss/formatter.md b/reference/chrono/hh_mm_ss/formatter.md
index 0e465a6ab..6b7a0c848 100644
--- a/reference/chrono/hh_mm_ss/formatter.md
+++ b/reference/chrono/hh_mm_ss/formatter.md
@@ -6,8 +6,8 @@
```cpp
namespace std {
- template &lt;class charT&gt;
- struct formatter&lt;chrono::hh_mm_ss, charT&gt;;
+ template &lt;class Rep, class Period, class charT&gt;
+ struct formatter&lt;chrono::hh_mm_ss&lt;chrono::duration&lt;Rep, Period&gt;&gt;, charT&gt;;
}
```
@@ -67,9 +67,9 @@ int main() {
2 : 15時30分20秒
3 : 15:30
4 : 15:30:20
-5: 午後03時30分20秒
-6: 午後03時30分20秒
-7: 15時30分20秒
+5 : 午後03時30分20秒
+6 : 午後03時30分20秒
+7 : 15時30分20秒
```
## バージョン
</code></pre></summary>
<author>
<name>rotarymars</name>
<email>s.goto2050@gmail.com</email>
</author>
</entry>
<entry>
<title>formatter -- chrono/formatter: hh_mm_ssはクラステンプレートなので特殊化に引数が必要、出力例の番号とスペースを修正</title>
<link href="https://cpprefjp.github.io/reference/chrono/month_weekday_last/formatter.html"/>
<id>ac073f0c4f34e6adbabf0116cb2571106598edd8:reference/chrono/month_weekday_last/formatter.md</id>
<updated>2026-08-08T16:18:35+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/chrono/month_weekday_last/formatter.md b/reference/chrono/month_weekday_last/formatter.md
index 85154176e..c83dd7f2d 100644
--- a/reference/chrono/month_weekday_last/formatter.md
+++ b/reference/chrono/month_weekday_last/formatter.md
@@ -50,7 +50,7 @@ int main() {
2 : March, Sunday
3 : 03, Sun
4 : 3月, 日
-4 : 3月, 日曜日
+5 : 3月, 日曜日
```
## バージョン
</code></pre></summary>
<author>
<name>rotarymars</name>
<email>s.goto2050@gmail.com</email>
</author>
</entry>
<entry>
<title>replace_copy -- replace_copy系: operator<<のstd::endlでostream_iteratorの区切りと重複して空行が入る、「値を一致する」の助詞を修正</title>
<link href="https://cpprefjp.github.io/reference/algorithm/ranges_replace_copy.html"/>
<id>e95eb2ca95c7ad4e1b70a6fee12265c338e6c14f:reference/algorithm/ranges_replace_copy.md</id>
<updated>2026-08-08T15:02:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/algorithm/ranges_replace_copy.md b/reference/algorithm/ranges_replace_copy.md
index ea0aa9823..f505271ff 100644
--- a/reference/algorithm/ranges_replace_copy.md
+++ b/reference/algorithm/ranges_replace_copy.md
@@ -136,7 +136,7 @@ namespace std::ranges {
* sized-random-access-range[link /reference/ranges/sized-random-access-range.md]
## 概要
-指定された値を一致する要素を指定された値に置き換え、その結果を出力の範囲へコピーする。
+指定された値と一致する要素を指定された値に置き換え、その結果を出力の範囲へコピーする。
- (1): イテレータ範囲を指定する
- (2): Rangeを直接指定する
@@ -205,7 +205,7 @@ struct Point {
};
std::ostream&amp; operator&lt;&lt;(std::ostream&amp; os, const Point&amp; p) {
- return os &lt;&lt; p.x &lt;&lt; &#39;,&#39; &lt;&lt; p.y &lt;&lt; std::endl;
+ return os &lt;&lt; p.x &lt;&lt; &#39;,&#39; &lt;&lt; p.y;
}
int main() {
</code></pre></summary>
<author>
<name>rotarymars</name>
<email>s.goto2050@gmail.com</email>
</author>
</entry>
<entry>
<title>replace_copy_if -- replace_copy系: operator<<のstd::endlでostream_iteratorの区切りと重複して空行が入る、「値を一致する」の助詞を修正</title>
<link href="https://cpprefjp.github.io/reference/algorithm/ranges_replace_copy_if.html"/>
<id>e95eb2ca95c7ad4e1b70a6fee12265c338e6c14f:reference/algorithm/ranges_replace_copy_if.md</id>
<updated>2026-08-08T15:02:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/algorithm/ranges_replace_copy_if.md b/reference/algorithm/ranges_replace_copy_if.md
index 6dd2ba5c4..63ac6af5a 100644
--- a/reference/algorithm/ranges_replace_copy_if.md
+++ b/reference/algorithm/ranges_replace_copy_if.md
@@ -182,7 +182,7 @@ struct Point {
};
std::ostream&amp; operator&lt;&lt;(std::ostream&amp; os, const Point&amp; p) {
- return os &lt;&lt; p.x &lt;&lt; &#39;,&#39; &lt;&lt; p.y &lt;&lt; std::endl;
+ return os &lt;&lt; p.x &lt;&lt; &#39;,&#39; &lt;&lt; p.y;
}
int main() {
</code></pre></summary>
<author>
<name>rotarymars</name>
<email>s.goto2050@gmail.com</email>
</author>
</entry>
<entry>
<title>replace_copy -- replace_copy系: operator<<のstd::endlでostream_iteratorの区切りと重複して空行が入る、「値を一致する」の助詞を修正</title>
<link href="https://cpprefjp.github.io/reference/algorithm/replace_copy.html"/>
<id>e95eb2ca95c7ad4e1b70a6fee12265c338e6c14f:reference/algorithm/replace_copy.md</id>
<updated>2026-08-08T15:02:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/algorithm/replace_copy.md b/reference/algorithm/replace_copy.md
index 5002d1fbe..62303f27a 100644
--- a/reference/algorithm/replace_copy.md
+++ b/reference/algorithm/replace_copy.md
@@ -33,7 +33,7 @@ namespace std {
```
## 概要
-イテレータ範囲`[first, last)`のうち、指定された値を一致する要素を指定された値に置き換え、その結果を出力の範囲へコピーする。
+イテレータ範囲`[first, last)`のうち、指定された値と一致する要素を指定された値に置き換え、その結果を出力の範囲へコピーする。
## テンプレートパラメータ制約
</code></pre></summary>
<author>
<name>rotarymars</name>
<email>s.goto2050@gmail.com</email>
</author>
</entry>
<entry>
<title>replace_copy_if -- replace_copy系: operator<<のstd::endlでostream_iteratorの区切りと重複して空行が入る、「値を一致する」の助詞を修正</title>
<link href="https://cpprefjp.github.io/reference/algorithm/replace_copy_if.html"/>
<id>e95eb2ca95c7ad4e1b70a6fee12265c338e6c14f:reference/algorithm/replace_copy_if.md</id>
<updated>2026-08-08T15:02:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/algorithm/replace_copy_if.md b/reference/algorithm/replace_copy_if.md
index e2d043103..c1136b757 100644
--- a/reference/algorithm/replace_copy_if.md
+++ b/reference/algorithm/replace_copy_if.md
@@ -135,7 +135,7 @@ struct Point {
};
std::ostream&amp; operator&lt;&lt;(std::ostream&amp; os, const Point&amp; p) {
- return os &lt;&lt; p.x &lt;&lt; &#39;,&#39; &lt;&lt; p.y &lt;&lt; std::endl;
+ return os &lt;&lt; p.x &lt;&lt; &#39;,&#39; &lt;&lt; p.y;
}
int main() {
</code></pre></summary>
<author>
<name>rotarymars</name>
<email>s.goto2050@gmail.com</email>
</author>
</entry>
<entry>
<title>is_corresponding_member -- is_corresponding_member, is_pointer_interconvertible_with_class: メンバ型も明示しないと推論に失敗する</title>
<link href="https://cpprefjp.github.io/reference/type_traits/is_corresponding_member.html"/>
<id>1368eb617353999922fd3c6b1dc4cde556302fce:reference/type_traits/is_corresponding_member.md</id>
<updated>2026-08-08T14:09:52+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/type_traits/is_corresponding_member.md b/reference/type_traits/is_corresponding_member.md
index 18b10a77d..0fff81abe 100644
--- a/reference/type_traits/is_corresponding_member.md
+++ b/reference/type_traits/is_corresponding_member.md
@@ -43,9 +43,9 @@ int main()
// 見た目に反して &amp;C::a, &amp;C::b はそれぞれ int(A::*), int(B::*) 型を持つため、
// このケースではS1=A, S2=Bに型推論されて前述例と同様にtrueを返す。
static_assert( std::is_corresponding_member( &amp;C::a, &amp;C::b ));
- // テンプレートパラメータを明示することでクラスCのメンバ変数に対する検査となる。
+ // テンプレートパラメータS1=S2=C, M1=M2=intを明示することでクラスCのメンバ変数に対する検査となる。
// このケースではCはスタンダードレイアウトクラスではなくfalseを返す。
- static_assert(!std::is_corresponding_member&lt;C, C&gt;( &amp;C::a, &amp;C::b ));
+ static_assert(!std::is_corresponding_member&lt;C, C, int, int&gt;( &amp;C::a, &amp;C::b ));
}
```
* std::is_corresponding_member[color ff0000]
</code></pre></summary>
<author>
<name>rotarymars</name>
<email>s.goto2050@gmail.com</email>
</author>
</entry>
<entry>
<title>is_pointer_interconvertible_with_class -- is_corresponding_member, is_pointer_interconvertible_with_class: メンバ型も明示しないと推論に失敗する</title>
<link href="https://cpprefjp.github.io/reference/type_traits/is_pointer_interconvertible_with_class.html"/>
<id>1368eb617353999922fd3c6b1dc4cde556302fce:reference/type_traits/is_pointer_interconvertible_with_class.md</id>
<updated>2026-08-08T14:09:52+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/type_traits/is_pointer_interconvertible_with_class.md b/reference/type_traits/is_pointer_interconvertible_with_class.md
index 2291a70eb..14b4fbbaf 100644
--- a/reference/type_traits/is_pointer_interconvertible_with_class.md
+++ b/reference/type_traits/is_pointer_interconvertible_with_class.md
@@ -42,9 +42,9 @@ int main()
// 見た目に反して &amp;C::b は int(B::*) 型を持つためS=Bに型推論されてしまう。
static_assert( std::is_pointer_interconvertible_with_class( &amp;C::b ));
- // テンプレートパラメータS=Cを明示することで M(C::*) の検査となる。
+ // テンプレートパラメータS=C, M=intを明示することで int(C::*) の検査となる。
// このケースではCはスタンダードレイアウトクラスではなくfalseとなる。
- static_assert(!std::is_pointer_interconvertible_with_class&lt;C&gt;( &amp;C::b ));
+ static_assert(!std::is_pointer_interconvertible_with_class&lt;C, int&gt;( &amp;C::b ));
}
```
* std::is_pointer_interconvertible_with_class[color ff0000]
</code></pre></summary>
<author>
<name>rotarymars</name>
<email>s.goto2050@gmail.com</email>
</author>
</entry>
<entry>
<title>extract -- unordered_set, unordered_multiset: C++17ではラムダ式がデフォルト構築できないため、ハッシュ関数を渡すよう修正</title>
<link href="https://cpprefjp.github.io/reference/unordered_set/unordered_multiset/extract.html"/>
<id>92852354627162be961611dbf0b17131adcfeb44:reference/unordered_set/unordered_multiset/extract.md</id>
<updated>2026-08-08T13:26:44+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/unordered_set/unordered_multiset/extract.md b/reference/unordered_set/unordered_multiset/extract.md
index a5de581ea..a18b3191e 100644
--- a/reference/unordered_set/unordered_multiset/extract.md
+++ b/reference/unordered_set/unordered_multiset/extract.md
@@ -63,7 +63,7 @@ auto my_hash = [](my_struct const&amp; s) noexcept -&gt; std::size_t
int main()
{
// ムーブオンリーな型をキーとして扱う multiset
- std::unordered_multiset&lt;my_struct, decltype(my_hash)&gt; s;
+ std::unordered_multiset&lt;my_struct, decltype(my_hash)&gt; s(10, my_hash);
// 挿入
s.insert(my_struct{1});
</code></pre></summary>
<author>
<name>rotarymars</name>
<email>s.goto2050@gmail.com</email>
</author>
</entry>
<entry>
<title>extract -- unordered_set, unordered_multiset: C++17ではラムダ式がデフォルト構築できないため、ハッシュ関数を渡すよう修正</title>
<link href="https://cpprefjp.github.io/reference/unordered_set/unordered_set/extract.html"/>
<id>92852354627162be961611dbf0b17131adcfeb44:reference/unordered_set/unordered_set/extract.md</id>
<updated>2026-08-08T13:26:44+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/unordered_set/unordered_set/extract.md b/reference/unordered_set/unordered_set/extract.md
index e8e6a9dc8..caf23a7b6 100644
--- a/reference/unordered_set/unordered_set/extract.md
+++ b/reference/unordered_set/unordered_set/extract.md
@@ -63,7 +63,7 @@ auto my_hash = [](my_struct const&amp; s) noexcept -&gt; std::size_t
int main()
{
// ムーブオンリーな型をキーとして扱う unordered_set
- std::unordered_set&lt;my_struct, decltype(my_hash)&gt; s;
+ std::unordered_set&lt;my_struct, decltype(my_hash)&gt; s(10, my_hash);
// 挿入
s.insert(my_struct{1});
</code></pre></summary>
<author>
<name>rotarymars</name>
<email>s.goto2050@gmail.com</email>
</author>
</entry>
</feed>