2
2
<feed xmlns =" http://www.w3.org/2005/Atom" >
3
3
<title >cpprefjp - C++日本語リファレンス</title >
4
4
<link href =" https://cpprefjp.github.io" />
5
- <updated >2025-04-04T14:43:50.180723 </updated >
6
- <id >5d895047-a4e2-4586-a596-e099234ec08d </id >
5
+ <updated >2025-04-05T04:10:55.229879 </updated >
6
+ <id >301947f6-4151-4b12-9471-f5ae910d7e67 </id >
7
7
8
8
9
+ <entry >
10
+ <title >文字列リテラルの文字エンコーディング失敗を不適格とする [P1854R4] -- C++26 「文字列リテラルの文字エンコーディング失敗を不適格とする」 : 例を見直し</title >
11
+ <link href =" https://cpprefjp.github.io/lang/cpp26/making_non-encodable_string_literals_ill-formed.html" />
12
+ <id >e897a1649efc952baf4e9f66508e25ea37cca81a:lang/cpp26/making_non-encodable_string_literals_ill-formed.md</id >
13
+ <updated >2025-04-05T13:07:32+09:00</updated >
14
+
15
+ <summary type =" html" >< pre>< code> diff --git a/lang/cpp26/making_non-encodable_string_literals_ill-formed.md b/lang/cpp26/making_non-encodable_string_literals_ill-formed.md
16
+ index 10bf6463f..629db80db 100644
17
+ --- a/lang/cpp26/making_non-encodable_string_literals_ill-formed.md
18
+ +++ b/lang/cpp26/making_non-encodable_string_literals_ill-formed.md
19
+ @@ -20,13 +20,12 @@ wchar_t c = L& #39;é& #39;; // C++20:OK, C++23:NG \u0065\u0301
20
+
21
+ C++26ではさらに、文字列リテラルとしてエンコーディングできない文字の扱いが実装定義でコンパイラーに任されていたものを、不適格になるよう仕様変更する。
22
+
23
+ +また、マルチ文字リテラル (ひとつの文字リテラルに4文字まで入れられて値が実装定義なもの。例として`& #39;intl& #39;`) については、単一のコードユニットにエンコードされるもののみ許可される。
24
+ +
25
+ ```cpp
26
+ -wchar_t ao = L& #39;\x123456789abcdef0& #39;; // C++23:実装定義, C++26:NG (範囲外)
27
+ -char16_t ap = u& #39;\x12345678& #39;; // C++23:実装定義, C++26:NG (範囲外)
28
+ +char c = & #39;é& #39;; // C++23:実装定義, C++26:NG グレイブアクセントをつけると複数のコードユニットになる
29
+ ```
30
+
31
+ -また、マルチ文字リテラル (ひとつの文字リテラルに4文字まで入れられて値が実装定義なもの。例として`& #39;intl& #39;`) については、単一のコードユニットにエンコードされるもののみ許可される。
32
+ -
33
+
34
+ ## 関連項目
35
+ - [C++23 1ワイド文字に収まらないワイド文字リテラルを禁止する](/lang/cpp23/remove_non_encodable_wide_character_literals_and_multicharacter_wide_character_literals.md)
36
+ < /code>< /pre> </summary >
37
+
38
+ <author >
39
+ <name >Akira Takahashi</name >
40
+
41
+ </author >
42
+ </entry >
43
+
9
44
<entry >
10
45
<title >count -- Created version column for reference/algorithm/count.md</title >
11
46
<link href =" https://cpprefjp.github.io/reference/algorithm/count.html" />
@@ -143,38 +178,4 @@ index e28d07b41..81610824b 100644
143
178
</author >
144
179
</entry >
145
180
146
- <entry >
147
- <title >binary_search -- created version column for reference/algorithm/binary_search.md</title >
148
- <link href =" https://cpprefjp.github.io/reference/algorithm/binary_search.html" />
149
- <id >1c1a876c59100a851f95aaee62d21850628b6e19:reference/algorithm/binary_search.md</id >
150
- <updated >2025-04-04T22:37:58+09:00</updated >
151
-
152
- <summary type =" html" >< pre>< code> diff --git a/reference/algorithm/binary_search.md b/reference/algorithm/binary_search.md
153
- index 2eeb4495d..342f67c3d 100644
154
- --- a/reference/algorithm/binary_search.md
155
- +++ b/reference/algorithm/binary_search.md
156
- @@ -100,6 +100,15 @@ bool binary_search(ForwardIterator first, ForwardIterator last,
157
- ```
158
- * std::lower_bound[link lower_bound.md]
159
-
160
- +## バージョン
161
- +### 言語
162
- +- C++98
163
- +
164
- +### 処理系
165
- +- [Clang](/implementation.md#clang): 14.0.6 [mark verified]
166
- +- [GCC](/implementation.md#gcc): 9.5.0 [mark verified]
167
- +- [ICC](/implementation.md#icc): ??
168
- +- [Visual C++](/implementation.md#visual_cpp): ??
169
-
170
- ## 参照
171
- - [LWG Issue 787. complexity of `binary_search`](http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#787)
172
- < /code>< /pre> </summary >
173
-
174
- <author >
175
- <name >rotarymars</name >
176
-
177
- </author >
178
- </entry >
179
-
180
181
</feed >
0 commit comments