-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrss.xml
More file actions
188 lines (156 loc) · 7.97 KB
/
Copy pathrss.xml
File metadata and controls
188 lines (156 loc) · 7.97 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
<?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-07-26T05:11:37.443608</updated>
<id>ffd1b4f7-a860-4bba-8f0e-afa76cab6160</id>
<entry>
<title>join_with_view -- join_with_view (C++23) : LWG 4074に対応</title>
<link href="https://cpprefjp.github.io/reference/ranges/join_with_view.html"/>
<id>4ba50cac30d96c2f10adf6021e3f78999fc62d33:reference/ranges/join_with_view.md</id>
<updated>2026-07-26T14:09:36+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/ranges/join_with_view.md b/reference/ranges/join_with_view.md
index 222d0f4e8..5337f1b8a 100644
--- a/reference/ranges/join_with_view.md
+++ b/reference/ranges/join_with_view.md
@@ -9,7 +9,7 @@ namespace std::ranges {
template&lt;input_range V, forward_range Pattern&gt;
requires view&lt;V&gt; &amp;&amp; input_range&lt;range_reference_t&lt;V&gt;&gt;
&amp;&amp; view&lt;Pattern&gt;
- &amp;&amp; compatible-joinable-ranges&lt;range_reference_t&lt;V&gt;, Pattern&gt;
+ &amp;&amp; concatable&lt;range_reference_t&lt;V&gt;, Pattern&gt;
class join_with_view : public view_interface&lt;join_with_view&lt;V, Pattern&gt;&gt; { …… }; // (1)
namespace views {
@@ -17,7 +17,7 @@ namespace std::ranges {
}
}
```
-* compatible-joinable-ranges[italic]
+* concatable[link concat_view.md]
## 概要
@@ -47,16 +47,12 @@ namespace std::ranges {
## 備考
-本説明に用いる説明専用要素を以下のように定義する。
+テンプレートパラメータ制約に用いる説明専用コンセプト`concatable`は、[`concat_view`](concat_view.md)で定義されるものと同一である。
+
+そのほか、本説明に用いる説明専用要素を以下のように定義する。
```cpp
namespace std::ranges {
- template&lt;class R, class P&gt;
- concept compatible-joinable-ranges = // 説明専用
- common_with&lt;range_value_t&lt;R&gt;, range_value_t&lt;P&gt;&gt; &amp;&amp;
- common_reference_with&lt;range_reference_t&lt;R&gt;, range_reference_t&lt;P&gt;&gt; &amp;&amp;
- common_reference_with&lt;range_reference_t&lt;R&gt;, range_rvalue_reference_t&lt;P&gt;&gt;;
-
template&lt;class R&gt;
concept bidirectional-common = bidirectional_range&lt;R&gt; &amp;&amp; common_range&lt;R&gt;; // 説明専用
}
@@ -162,3 +158,5 @@ hello-C++23-world
## 参照
- [N4950 26 Ranges library](https://timsong-cpp.github.io/cppwp/n4950/ranges)
+- [LWG Issue 4074 *compatible-joinable-ranges* is underconstrained](https://cplusplus.github.io/LWG/issue4074)
+ - テンプレートパラメータ制約が`concatable`コンセプトに変更され、[`input_range`](input_range.md)のモデルとならない`join_with_view`が構築されうる問題が修正された。この修正はC++26で導入されたが、欠陥報告 (DR) であるためコンパイラは早期に対応している場合がある
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>エスケープシーケンスの区切り [P2290R3] -- fix unicode</title>
<link href="https://cpprefjp.github.io/lang/cpp23/delimited_escape_sequences.html"/>
<id>e68bf10bcf52f881748ad2f9bbc0238bab1a2e53:lang/cpp23/delimited_escape_sequences.md</id>
<updated>2026-07-23T19:19:44+09:00</updated>
<summary type="html"><pre><code>diff --git a/lang/cpp23/delimited_escape_sequences.md b/lang/cpp23/delimited_escape_sequences.md
index 1f0abfac5..6d2fc8d34 100644
--- a/lang/cpp23/delimited_escape_sequences.md
+++ b/lang/cpp23/delimited_escape_sequences.md
@@ -24,7 +24,7 @@ C++23では、文字列リテラル中に記述するエスケープシーケン
&#34;\x{ab}c&#34;; // C++23 : 2文字を表す
// ユニバーサルキャラクタ名
-u8&#34;\u0001F1F8&#34;; // 4文字か8文字のみ指定できる制限があるので先頭0埋めする
+u8&#34;\U0001F1F8&#34;; // 4文字か8文字のみ指定できる制限があるので先頭0埋めする
u8&#34;\u{1F1F8}&#34;; // C++23 : 5文字のコードポイントも記述できる
```
</code></pre></summary>
<author>
<name>rotarymars</name>
<email>s.goto2050@gmail.com</email>
</author>
</entry>
<entry>
<title>スコープ付き列挙型のusing宣言 [P1099R5] -- fix of wrong switch statement</title>
<link href="https://cpprefjp.github.io/lang/cpp20/using_enum.html"/>
<id>31d95bcb692d86290eb24702cf7513d19d70e7bb:lang/cpp20/using_enum.md</id>
<updated>2026-07-23T19:17:43+09:00</updated>
<summary type="html"><pre><code>diff --git a/lang/cpp20/using_enum.md b/lang/cpp20/using_enum.md
index a34c94d36..e0a1b2076 100644
--- a/lang/cpp20/using_enum.md
+++ b/lang/cpp20/using_enum.md
@@ -30,7 +30,7 @@ using enum宣言した列挙型の列挙値は、そのスコープにおいて
enum class rgba_color_channel { red, green, blue, alpha};
std::string_view to_string(rgba_color_channel channel) {
- switch (my_channel) {
+ switch (channel) {
using enum rgba_color_channel;
case red: return &#34;red&#34;;
case green: return &#34;green&#34;;
</code></pre></summary>
<author>
<name>rotarymars</name>
<email>s.goto2050@gmail.com</email>
</author>
</entry>
<entry>
<title>可変サイズをもつコンテナのconstexpr化 [P0784R7] -- fix a out-of-scope var</title>
<link href="https://cpprefjp.github.io/lang/cpp20/more_constexpr_containers.html"/>
<id>019227f67fe820e0f07decb478b374ef38210c9d:lang/cpp20/more_constexpr_containers.md</id>
<updated>2026-07-23T19:17:06+09:00</updated>
<summary type="html"><pre><code>diff --git a/lang/cpp20/more_constexpr_containers.md b/lang/cpp20/more_constexpr_containers.md
index a4b96f9c4..9fba19ad4 100644
--- a/lang/cpp20/more_constexpr_containers.md
+++ b/lang/cpp20/more_constexpr_containers.md
@@ -308,7 +308,7 @@ struct sample {
// constexprデストラクタでメモリ領域を解放
constexpr ~sample() {
- for(size_t i = 0; i &lt; N; ++i) {
+ for(size_t i = 0; i &lt; m_size; ++i) {
std::destroy_at(m_p + i);
}
m_alloc.deallocate(m_p, m_size);
</code></pre></summary>
<author>
<name>rotarymars</name>
<email>s.goto2050@gmail.com</email>
</author>
</entry>
<entry>
<title>可変サイズをもつコンテナのconstexpr化 [P0784R7] -- fix in deallocate</title>
<link href="https://cpprefjp.github.io/lang/cpp20/more_constexpr_containers.html"/>
<id>670bc078adfb1efb2f7a7180bf6f65cafb1a6ece:lang/cpp20/more_constexpr_containers.md</id>
<updated>2026-07-23T19:16:09+09:00</updated>
<summary type="html"><pre><code>diff --git a/lang/cpp20/more_constexpr_containers.md b/lang/cpp20/more_constexpr_containers.md
index f973b5746..a4b96f9c4 100644
--- a/lang/cpp20/more_constexpr_containers.md
+++ b/lang/cpp20/more_constexpr_containers.md
@@ -181,7 +181,7 @@ constexpr int f() {
// 破棄と解放
std::destroy_at(p);
- alloc.deallocate();
+ alloc.deallocate(p, 1);
return n;
}
@@ -204,7 +204,7 @@ constexpr int f() {
// 忘れる
//std::destroy_at(p);
- //alloc.deallocate();
+ //alloc.deallocate(p, 1);
return n;
}
</code></pre></summary>
<author>
<name>rotarymars</name>
<email>s.goto2050@gmail.com</email>
</author>
</entry>
</feed>