Skip to content

Commit 60df90c

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 897eba2 commit 60df90c

File tree

16 files changed

+4585
-5642
lines changed

16 files changed

+4585
-5642
lines changed

lang/cpp26.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@
176176

177177
<p class="text-right"><small>
178178
最終更新日時(UTC):
179-
<span itemprop="datePublished" content="2024-08-08T07:23:33">
180-
2024年08月08日 07時23分33秒
179+
<span itemprop="datePublished" content="2024-08-09T03:46:09">
180+
2024年08月09日 03時46分09秒
181181
</span>
182182
<br/>
183183
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -685,7 +685,7 @@ <h3>非推奨の取り消し</h3>
685685
<h3>機能の削除</h3>
686686
<ul>
687687
<li>C++98から非推奨となっていた<code>&lt;strstream&gt;</code>ライブラリを削除</li>
688-
<li>C++17から非推奨となっていたUnicode変換ライブラリ<code><a href="../reference/codecvt.html">&lt;codecvt&gt;</a></code><code><a href="../reference/locale/wstring_convert.html">std::wstring_convert</a></code>を削除</li>
688+
<li>C++17から非推奨となっていたUnicode変換ライブラリ<code><a href="../reference/codecvt.html">&lt;codecvt&gt;</a></code><code><a href="../reference/locale/wstring_convert.html">std::wstring_convert</a></code>クラス、<code><a href="../reference/locale/wbuffer_convert.html">std::wbuffer_convert</a></code>クラスを削除</li>
689689
<li>C++20から非推奨となっていた、<code><a href="../reference/string/basic_string.html">std::basic_string</a>::<a href="../reference/string/basic_string/reserve.html">reserve()</a></code>のパラメータなしのオーバーロードを削除</li>
690690
<li>C++20から非推奨となっていた<code><a href="../reference/memory/shared_ptr.html">std::shared_ptr</a></code>に対する、以下の古いアトミック操作関数のオーバーロードを削除<ul>
691691
<li><code><a href="../reference/memory/shared_ptr/atomic_is_lock_free.html">std::atomic_is_lock_free</a></code></li>

reference/chrono/make24.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ <h2>例</h2>
239239
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">12h</a></span><span class="p">,</span> <span class="nb">false</span><span class="p">)</span> <span class="o">==</span> <span class="n"><a href="duration/op_h.html">0h</a></span><span class="p">);</span>
240240

241241
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">12h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="n"><a href="duration/op_h.html">12h</a></span><span class="p">);</span>
242-
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">1h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="mi">1</span><span class="n"><a href="duration/op_h.html">3h</a></span><span class="p">);</span>
242+
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">1h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="mi">1L</span><span class="n">odKbfTjnXAYPzWKvRxSGXyaaujxfnKC</span><span class="p">);</span>
243243
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">3h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="n"><a href="duration/op_h.html">15h</a></span><span class="p">);</span>
244244
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">11h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="n"><a href="duration/op_h.html">23h</a></span><span class="p">);</span>
245245
<span class="p">}</span>

reference/locale.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,12 @@
176176

177177
<p class="text-right"><small>
178178
最終更新日時(UTC):
179-
<span itemprop="datePublished" content="2019-07-08T08:12:44">
180-
2019年07月08日 08時12分44秒
179+
<span itemprop="datePublished" content="2024-08-09T03:46:09">
180+
2024年08月09日 03時46分09秒
181181
</span>
182182
<br/>
183183
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
184-
<span itemprop="name">Mitsuru Kariya</span>
184+
<span itemprop="name">Akira Takahashi</span>
185185
</span>
186186
が更新
187187
</small></p>
@@ -307,12 +307,12 @@ <h2>利便性インタフェース</h2>
307307
<tr>
308308
<td><code><a href="locale/wstring_convert.html">wstring_convert</a></code></td>
309309
<td><code>codecvt</code>による文字列変換(class template)</td>
310-
<td>C++11<br /> C++17から非推奨</td>
310+
<td>C++11<br /> C++17から非推奨<br /> C++26で削除</td>
311311
</tr>
312312
<tr>
313313
<td><code><a href="locale/wbuffer_convert.html">wbuffer_convert</a></code></td>
314314
<td><code>codecvt</code>によるストリームバッファ変換(class template)</td>
315-
<td>C++11<br /> C++17から非推奨</td>
315+
<td>C++11<br /> C++17から非推奨<br /> C++26で削除</td>
316316
</tr>
317317
<tr>
318318
<td><code><a href="locale/ctype_base.html">ctype_base</a></code></td>

reference/locale/wbuffer_convert.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
</head>
7070
<body>
71-
<header data-kunai-mdinfo="{&#34;meta&#34;: {&#34;header&#34;: [&#34;locale&#34;], &#34;namespace&#34;: [&#34;std&#34;], &#34;id-type&#34;: [&#34;class template&#34;], &#34;cpp&#34;: [&#34;cpp11&#34;, &#34;cpp17deprecated&#34;]}, &#34;sources&#34;: [], &#34;page_id&#34;: [&#34;reference&#34;, &#34;locale&#34;, &#34;wbuffer_convert&#34;]}">
71+
<header data-kunai-mdinfo="{&#34;meta&#34;: {&#34;header&#34;: [&#34;locale&#34;], &#34;namespace&#34;: [&#34;std&#34;], &#34;id-type&#34;: [&#34;class template&#34;], &#34;cpp&#34;: [&#34;cpp11&#34;, &#34;cpp17deprecated&#34;, &#34;cpp26removed&#34;]}, &#34;sources&#34;: [], &#34;page_id&#34;: [&#34;reference&#34;, &#34;locale&#34;, &#34;wbuffer_convert&#34;]}">
7272
<nav class="navbar navbar-default" role="navigation">
7373
<div class="container-fluid">
7474
<div class="navbar-header">
@@ -188,8 +188,8 @@
188188

189189
<p class="text-right"><small>
190190
最終更新日時(UTC):
191-
<span itemprop="datePublished" content="2024-06-11T13:45:38">
192-
2024年06月11日 13時45分38秒
191+
<span itemprop="datePublished" content="2024-08-09T03:46:09">
192+
2024年08月09日 03時46分09秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -212,7 +212,7 @@
212212
<div class="row">
213213
<div class="col-sm-12 content-body">
214214

215-
<div class="identifier-type">class template</div><div class="header">&lt;locale&gt;</div><h1 itemprop="name"><span class="namespace" title="namespace std">std::</span><span class="token">wbuffer_convert</span><span class="cpp cpp11" title="C++11で追加">(C++11)</span><span class="cpp cpp17deprecated text-warning" title="C++17で非推奨">(C++17で非推奨)</span></h1>
215+
<div class="identifier-type">class template</div><div class="header">&lt;locale&gt;</div><h1 itemprop="name"><span class="namespace" title="namespace std">std::</span><span class="token">wbuffer_convert</span><span class="cpp cpp11" title="C++11で追加">(C++11)</span><span class="cpp cpp17deprecated text-warning" title="C++17で非推奨">(C++17で非推奨)</span><span class="cpp cpp26removed text-danger" title="C++26で削除">(C++26で削除)</span></h1>
216216
<div itemprop="articleBody"><p><div class="codehilite"><pre><span></span><code><span class="k">namespace</span> <span class="n">std</span> <span class="p">{</span>
217217
<span class="k">template</span> <span class="o">&lt;</span><span class="k">class</span> <span class="nc">Codecvt</span><span class="p">,</span>
218218
<span class="k">class</span> <span class="nc">Elem</span> <span class="o">=</span> <span class="kt">wchar_t</span><span class="p">,</span>
@@ -223,10 +223,10 @@
223223
</p>
224224
<h2>概要</h2>
225225
<p>(ここに、クラスの概要を記載する)</p>
226-
<h2>非推奨の詳細</h2>
226+
<h2>非推奨・削除の詳細</h2>
227227
<p>Unicodeの文字コード変換を行うこれらのクラスは、不正なコードポイントに対する安全なエラー処理の方法を提供していなかったため、セキュリティ上の欠陥があった。</p>
228228
<p>仕様もあいまいであったため、不正なコードポイントに対してどのように振る舞うかも不明であった。</p>
229-
<p>Unicode以外のShift_JISやBig5といった文字コードの利用が急激に減少している。標準ライブラリでの現代的なUnicodeの変換機能は非常に必要とされているが、<code><a href="../codecvt.html">&lt;codecvt&gt;</a></code>とそれに関連する機能の設計はお粗末なものだった。将来より良いものを作るために、これらの機能は非推奨とする</p>
229+
<p>Unicode以外のShift_JISやBig5といった文字コードの利用が急激に減少している。標準ライブラリでの現代的なUnicodeの変換機能は非常に必要とされているが、<code><a href="../codecvt.html">&lt;codecvt&gt;</a></code>とそれに関連する機能の設計はお粗末なものだった。将来より良いものを作るために、これらの機能は非推奨・削除とする</p>
230230
<p>標準ライブラリにUnicodeの文字コード変換をする代替機能はないため、他の専門特化した文字コード変換のライブラリを使用すること。</p>
231231
<h3>メンバ関数</h3>
232232
<table border="1" bordercolor="#888" style="border-collapse:collapse">
@@ -288,6 +288,7 @@ <h2>参照</h2>
288288
<ul>
289289
<li><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2007.html" target="_blank">N2007 Proposed Library Additions for Code Conversion</a></li>
290290
<li><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0618r0.html" target="_blank">P0618R0 Deprecating <code>&lt;codecvt&gt;</code></a></li>
291+
<li><a href="https://open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2872r3.pdf" target="_blank">P2872R3 Remove <code>wstring_convert</code> From C++26</a></li>
291292
</ul></div>
292293

293294
</div>

reference/locale/wstring_convert.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
</head>
7070
<body>
71-
<header data-kunai-mdinfo="{&#34;meta&#34;: {&#34;header&#34;: [&#34;locale&#34;], &#34;namespace&#34;: [&#34;std&#34;], &#34;id-type&#34;: [&#34;class template&#34;], &#34;cpp&#34;: [&#34;cpp11&#34;, &#34;cpp17deprecated&#34;]}, &#34;sources&#34;: [{&#34;id&#34;: &#34;e44d0d02129c7cf6a98eb13dabc1466adc4ab61c&#34;, &#34;source&#34;: &#34;#include &lt;iostream&gt;\n#include &lt;string&gt;\n#include &lt;locale&gt;\n#include &lt;codecvt&gt;\n\nint main()\n{\n // UTF-8\u3068UTF-32\u306e\u76f8\u4e92\u5909\u63db\u3092\u884c\u3046\u30b3\u30f3\u30d0\u30fc\u30bf\u30fc\n std::wstring_convert&lt;std::codecvt_utf8&lt;char32_t&gt;, char32_t&gt; converter;\n\n // UTF-8\u304b\u3089UTF-32\u306b\u5909\u63db\n std::string u8str = u8\&#34;\u3042\u3044\u3046\u3048\u304a\&#34;;\n std::u32string u32str = converter.from_bytes(u8str);\n\n // \u30b3\u30fc\u30c9\u30dd\u30a4\u30f3\u30c8\u6570\u3092\u53d6\u5f97\n std::size_t codepoint_count = u32str.size();\n std::cout &lt;&lt; codepoint_count &lt;&lt; std::endl;\n}\n&#34;}], &#34;page_id&#34;: [&#34;reference&#34;, &#34;locale&#34;, &#34;wstring_convert&#34;]}">
71+
<header data-kunai-mdinfo="{&#34;meta&#34;: {&#34;header&#34;: [&#34;locale&#34;], &#34;namespace&#34;: [&#34;std&#34;], &#34;id-type&#34;: [&#34;class template&#34;], &#34;cpp&#34;: [&#34;cpp11&#34;, &#34;cpp17deprecated&#34;, &#34;cpp26removed&#34;]}, &#34;sources&#34;: [{&#34;id&#34;: &#34;e44d0d02129c7cf6a98eb13dabc1466adc4ab61c&#34;, &#34;source&#34;: &#34;#include &lt;iostream&gt;\n#include &lt;string&gt;\n#include &lt;locale&gt;\n#include &lt;codecvt&gt;\n\nint main()\n{\n // UTF-8\u3068UTF-32\u306e\u76f8\u4e92\u5909\u63db\u3092\u884c\u3046\u30b3\u30f3\u30d0\u30fc\u30bf\u30fc\n std::wstring_convert&lt;std::codecvt_utf8&lt;char32_t&gt;, char32_t&gt; converter;\n\n // UTF-8\u304b\u3089UTF-32\u306b\u5909\u63db\n std::string u8str = u8\&#34;\u3042\u3044\u3046\u3048\u304a\&#34;;\n std::u32string u32str = converter.from_bytes(u8str);\n\n // \u30b3\u30fc\u30c9\u30dd\u30a4\u30f3\u30c8\u6570\u3092\u53d6\u5f97\n std::size_t codepoint_count = u32str.size();\n std::cout &lt;&lt; codepoint_count &lt;&lt; std::endl;\n}\n&#34;}], &#34;page_id&#34;: [&#34;reference&#34;, &#34;locale&#34;, &#34;wstring_convert&#34;]}">
7272
<nav class="navbar navbar-default" role="navigation">
7373
<div class="container-fluid">
7474
<div class="navbar-header">
@@ -188,8 +188,8 @@
188188

189189
<p class="text-right"><small>
190190
最終更新日時(UTC):
191-
<span itemprop="datePublished" content="2024-06-11T13:45:38">
192-
2024年06月11日 13時45分38秒
191+
<span itemprop="datePublished" content="2024-08-09T03:46:09">
192+
2024年08月09日 03時46分09秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -212,7 +212,7 @@
212212
<div class="row">
213213
<div class="col-sm-12 content-body">
214214

215-
<div class="identifier-type">class template</div><div class="header">&lt;locale&gt;</div><h1 itemprop="name"><span class="namespace" title="namespace std">std::</span><span class="token">wstring_convert</span><span class="cpp cpp11" title="C++11で追加">(C++11)</span><span class="cpp cpp17deprecated text-warning" title="C++17で非推奨">(C++17で非推奨)</span></h1>
215+
<div class="identifier-type">class template</div><div class="header">&lt;locale&gt;</div><h1 itemprop="name"><span class="namespace" title="namespace std">std::</span><span class="token">wstring_convert</span><span class="cpp cpp11" title="C++11で追加">(C++11)</span><span class="cpp cpp17deprecated text-warning" title="C++17で非推奨">(C++17で非推奨)</span><span class="cpp cpp26removed text-danger" title="C++26で削除">(C++26で削除)</span></h1>
216216
<div itemprop="articleBody"><p><div class="codehilite"><pre><span></span><code><span class="k">namespace</span> <span class="n">std</span> <span class="p">{</span>
217217
<span class="k">template</span> <span class="o">&lt;</span><span class="k">class</span> <span class="nc">Codecvt</span><span class="p">,</span> <span class="k">class</span> <span class="nc">Elem</span> <span class="o">=</span> <span class="kt">wchar_t</span><span class="p">,</span>
218218
<span class="k">class</span> <span class="nc">Wide_alloc</span> <span class="o">=</span> <span class="n"><a href="../memory/allocator.html">std::allocator</a></span><span class="o">&lt;</span><span class="n">Elem</span><span class="o">&gt;</span><span class="p">,</span>
@@ -258,10 +258,10 @@ <h2>概要</h2>
258258
</tr>
259259
</tbody>
260260
</table>
261-
<h2>非推奨の詳細</h2>
261+
<h2>非推奨・削除の詳細</h2>
262262
<p>Unicodeの文字コード変換を行うこれらのクラスは、不正なコードポイントに対する安全なエラー処理の方法を提供していなかったため、セキュリティ上の欠陥があった。</p>
263263
<p>仕様もあいまいであったため、不正なコードポイントに対してどのように振る舞うかも不明であった。</p>
264-
<p>Unicode以外のShift_JISやBig5といった文字コードの利用が急激に減少している。標準ライブラリでの現代的なUnicodeの変換機能は非常に必要とされているが、<code><a href="../codecvt.html">&lt;codecvt&gt;</a></code>とそれに関連する機能の設計はお粗末なものだった。将来より良いものを作るために、これらの機能は非推奨とする</p>
264+
<p>Unicode以外のShift_JISやBig5といった文字コードの利用が急激に減少している。標準ライブラリでの現代的なUnicodeの変換機能は非常に必要とされているが、<code><a href="../codecvt.html">&lt;codecvt&gt;</a></code>とそれに関連する機能の設計はお粗末なものだった。将来より良いものを作るために、これらの機能は非推奨・削除とする</p>
265265
<p>標準ライブラリにUnicodeの文字コード変換をする代替機能はないため、他の専門特化した文字コード変換のライブラリを使用すること。</p>
266266
<h2>メンバ関数</h2>
267267
<table border="1" bordercolor="#888" style="border-collapse:collapse">
@@ -382,6 +382,7 @@ <h2>参照</h2>
382382
<ul>
383383
<li><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2007.html" target="_blank">N2007 Proposed Library Additions for Code Conversion</a></li>
384384
<li><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0618r0.html" target="_blank">P0618R0 Deprecating <code>&lt;codecvt&gt;</code></a></li>
385+
<li><a href="https://open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2872r3.pdf" target="_blank">P2872R3 Remove <code>wstring_convert</code> From C++26</a></li>
385386
</ul></div>
386387

387388
</div>

0 commit comments

Comments
 (0)