|
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>2026-01-07T14:53:21.744368</updated> |
6 | | - <id>fb0cac0a-6f89-419d-acb9-e32836a7f4e1</id> |
| 5 | + <updated>2026-01-08T02:06:15.233170</updated> |
| 6 | + <id>3c970776-4c5f-4385-9ea1-0f156275e320</id> |
7 | 7 |
|
8 | 8 |
|
| 9 | + <entry> |
| 10 | + <title>C++国際標準規格 -- C++26のWorking Draftを更新 #1555</title> |
| 11 | + <link href="https://cpprefjp.github.io/international-standard.html"/> |
| 12 | + <id>9cec653b345af51f952abf1c013b42dffe9a3f72:international-standard.md</id> |
| 13 | + <updated>2026-01-08T11:02:17+09:00</updated> |
| 14 | + |
| 15 | + <content type="html"><h1 itemprop="name"><span class="token">C++国際標準規格</span></h1> |
| 16 | +<div itemprop="articleBody"><h2><a href="#summary" id="summary">概要</a></h2> |
| 17 | +<p>C++ の標準規格の実例として ISO/IEC による<strong>国際標準規格</strong> (international standard) がある。 |
| 18 | +最新の国際標準規格は「ISO/IEC 14882:2020 Programming Languages -- C++」(通称 C++20) である。 |
| 19 | +C++ の標準規格は、他にも各国の規格化団体によって国際標準規格に等価なものが定められている。 |
| 20 | +日本では日本工業標準調査会 (JISC) により「JIS X 3014:2003 プログラム言語C++」が定められているが古い (C++03 相当)。 |
| 21 | +ここでは特に国際標準規格について取り扱う。</p> |
| 22 | +<h2><a href="#list-of-iso-cpp" id="list-of-iso-cpp">国際標準規格の一覧</a></h2> |
| 23 | +<table border="1" bordercolor="#888" style="border-collapse:collapse"> |
| 24 | +<thead> |
| 25 | +<tr> |
| 26 | +<th align="left">通称<sup><a href="#note-t1-1" id="note_ref-t1-1">†1</a></sup></th> |
| 27 | +<th align="left">名称</th> |
| 28 | +<th align="left">参照する規格案<sup><a href="#note-t1-2" id="note_ref-t1-2">†2</a></sup></th> |
| 29 | +<th align="left">規格案・原案</th> |
| 30 | +<th align="left"><code>__cplusplus</code></th> |
| 31 | +</tr> |
| 32 | +</thead> |
| 33 | +<tbody> |
| 34 | +<tr> |
| 35 | +<td align="left"><a href="lang/cpp26.html">C++26</a> (C++2c)</td> |
| 36 | +<td align="left">ISO/IEC 14882:2026 (予定)</td> |
| 37 | +<td align="left">N5032(<a href="https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/n5032.pdf" target="_blank">PDF</a>/<a href="https://timsong-cpp.github.io/cppwp/" target="_blank">HTML</a>)</td> |
| 38 | +<td align="left">N5032 N5014 N5008 N5001 N4993 N4986 N4981 N4971 N4964 N4958</td> |
| 39 | +<td align="left">--</td> |
| 40 | +</tr> |
| 41 | +<tr> |
| 42 | +<td align="left"><a href="lang/cpp23.html">C++23</a> (C++2b)</td> |
| 43 | +<td align="left">ISO/IEC 14882:2024</td> |
| 44 | +<td align="left">N4950(<a href="https://open-std.org/jtc1/sc22/wg21/docs/papers/2023/n4950.pdf" target="_blank">PDF</a>/<a href="https://timsong-cpp.github.io/cppwp/n4950/" target="_blank">HTML</a>)</td> |
| 45 | +<td align="left">N4950 N4944 N4928 N4917 N4910 N4901 N4892 N4885 N4878<br />N4868 N4861</td> |
| 46 | +<td align="left"><code>202302L</code></td> |
| 47 | +</tr> |
| 48 | +<tr> |
| 49 | +<td align="left"><a href="lang/cpp20.html">C++20</a> (C++2a)</td> |
| 50 | +<td align="left">ISO/IEC 14882:2020</td> |
| 51 | +<td align="left">N4861<sup><a href="#note-t1-3" id="note_ref-t1-3">†3</a></sup>(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/n4861.pdf" target="_blank">PDF</a>/<a href="https://timsong-cpp.github.io/cppwp/n4861/" target="_blank">HTML</a>)</td> |
| 52 | +<td align="left">N4860 N4849 N4842 N4835 N4830<br />N4820 N4810 N4800 N4791 <del>N4788</del><sup><a href="#note-t1-4" id="note_ref-t1-4">†4</a></sup><br />N4778 N4762 N4750 N4741 N4727<br />N4713 N4700 N4687</td> |
| 53 | +<td align="left"><code>202002L</code></td> |
| 54 | +</tr> |
| 55 | +<tr> |
| 56 | +<td align="left"><a href="lang/cpp17.html">C++17</a> (C++1z)</td> |
| 57 | +<td align="left">ISO/IEC 14882:2017</td> |
| 58 | +<td align="left">N4659(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/n4659.pdf" target="_blank">PDF</a>/<a href="https://timsong-cpp.github.io/cppwp/n4659/" target="_blank">HTML</a>)</td> |
| 59 | +<td align="left">N4660 N4659 N4640 N4618 N4606<br />N4594 N4582 N4567 N4527 N4431<br />N4296</td> |
| 60 | +<td align="left"><code>201703L</code></td> |
| 61 | +</tr> |
| 62 | +<tr> |
| 63 | +<td align="left"><a href="lang/cpp14.html">C++14</a> (C++1y)</td> |
| 64 | +<td align="left">ISO/IEC 14882:2014</td> |
| 65 | +<td align="left">N4140(<a href="https://github.com/cplusplus/draft/blob/master/papers/n4140.pdf?raw=true" target="_blank">PDF</a>/<a href="https://timsong-cpp.github.io/cppwp/n4140/" target="_blank">HTML</a>)</td> |
| 66 | +<td align="left">N4141 N4140 N3937 N3936 N3797<br />N3691 N3690 N3485 N3376 N3337</td> |
| 67 | +<td align="left"><code>201402L</code></td> |
| 68 | +</tr> |
| 69 | +<tr> |
| 70 | +<td align="left"><a href="lang/cpp11.html">C++11</a> (C++0x)</td> |
| 71 | +<td align="left">ISO/IEC 14882:2011</td> |
| 72 | +<td align="left">N3337<sup><a href="#note-t1-5" id="note_ref-t1-5">†5</a></sup>(<a href="https://wg21.link/std11" target="_blank">PDF</a>/<a href="https://timsong-cpp.github.io/cppwp/n3337/" target="_blank">HTML</a>)</td> |
| 73 | +<td align="left">N3291 N3290 N3242 N3225 N3126<br />N3090 N3035 N3000 N2960 N2914<br />N2857 N2798 N2723 N2691 N2606<br />N2588 N2521 N2461 N2369 N2315<br />N2284 N2134 N2009 N1905 N1804<br />N1733 N1655</td> |
| 74 | +<td align="left"><code>201103L</code></td> |
| 75 | +</tr> |
| 76 | +<tr> |
| 77 | +<td align="left">C++03</td> |
| 78 | +<td align="left">ISO/IEC 14882:2003</td> |
| 79 | +<td align="left">N1577</td> |
| 80 | +<td align="left">N1577 ?</td> |
| 81 | +<td align="left"><code>199711L</code><br />(C++98 と同じ)</td> |
| 82 | +</tr> |
| 83 | +<tr> |
| 84 | +<td align="left">C++98</td> |
| 85 | +<td align="left">ISO/IEC 14882:1998</td> |
| 86 | +<td align="left">?</td> |
| 87 | +<td align="left">?</td> |
| 88 | +<td align="left"><code>199711L</code></td> |
| 89 | +</tr> |
| 90 | +</tbody> |
| 91 | +</table> |
| 92 | +<ol> |
| 93 | +<li><a href="#note_ref-t1-1" id="note-t1-1"><strong>^</strong></a> カッコ内は策定時・標準化前に一時的に用いられた通称</li> |
| 94 | +<li><a href="#note_ref-t1-2" id="note-t1-2"><strong>^</strong></a> 最終国際規格案はPDFやHTMLなどの形で一般公開されていないため、それにほぼ同一の内容の規格案を参照する。</li> |
| 95 | +<li><a href="#note_ref-t1-3" id="note-t1-3"><strong>^</strong></a> N4861 は、C++20 DISであるN4860に対するデザインレベルの差とC++17との相互参照がない以外の差はないため、事実上 N4861 が C++20 を参照する時に用いられる。</li> |
| 96 | +<li><a href="#note_ref-t1-4" id="note-t1-4"><strong>^</strong></a> N4788 は政治的事情により撤回された (参照 N4792)</li> |
| 97 | +<li><a href="#note_ref-t1-5" id="note-t1-5"><strong>^</strong></a> N3337 は、C++11規格に対する編集レベルの修正のみが適用された仕様案であるため、事実上 N3337 が C++11 を参照する時に用いられる。C++11規格からN3337への変更点は、<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3338.html" target="_blank">N3338</a>を参照。<br /> |
| 98 | +(それより前の公開されているC++11向け仕様案であるN3242からC++11規格に対しては、機能的な変更がいくつかあるため、C++11規格として参照するには適さない)</li> |
| 99 | +</ol> |
| 100 | +<p>最新のDraftのHTML版は以下で公開されている。<br /> |
| 101 | +<a href="https://timsong-cpp.github.io/cppwp/" target="_blank">Draft C++ Standard: Contents</a></p> |
| 102 | +<p>標準規格の文章はtexで書かれており、そのソースコードは以下で2011年8月16日以降のものについて(つまりN3291より後、N3337より前)公開されている。<br /> |
| 103 | +<a href="https://github.com/cplusplus/draft" target="_blank">cplusplus/draft: C++ standards drafts</a></p> |
| 104 | +<h2><a href="#iso-cpp-committee" id="iso-cpp-committee">用語: 国際標準規格を定める組織</a></h2> |
| 105 | +<ul> |
| 106 | +<li><strong>C++標準化委員会</strong> (C++ Standards Committee): C++ の国際標準規格を策定する団体。 |
| 107 | + 組織としての位置づけはISO/IEC JTC1/SC22/WG21になる。 |
| 108 | + <strong>国際標準化機構</strong> (ISO; international organization for standardization) および<strong>国際電気標準会議</strong> (IEC; International Electronics Commission) はそれぞれ様々な規格の標準化団体である。 |
| 109 | + <strong>第一合同技術委員会</strong> (JTC1; Joint Technical Committee 1) は ISO/IEC の下で情報技術の標準化を行う団体である。 |
| 110 | + 下部組織の SC22 はプログラム言語の標準化を行う<strong>副委員会</strong> (SC; subcommittee) である。 |
| 111 | + C++標準化委員会は WG21 という<strong>作業グループ</strong> (WG; working group) である。</li> |
| 112 | +<li><strong>CWG</strong> (Core working group): C++標準化委員会の内、コア言語機能の策定を行う作業グループ</li> |
| 113 | +<li><strong>LWG</strong> (Library working group): C++標準化委員会の内、標準ライブラリ機能の策定を行う作業グループ</li> |
| 114 | +<li><strong>NB</strong> (national body) または<strong>MB/NC</strong> (member body/national committee): C++標準化委員会の正会員つまり各国から派遣される団体のこと。本来は member body は ISO での名称で、national committee は IEC での名称。</li> |
| 115 | +</ul> |
| 116 | +<h2><a href="#iso-cpp-documents" id="iso-cpp-documents">用語: 国際標準規格の文書</a></h2> |
| 117 | +<ul> |
| 118 | +<li><strong>提案文書</strong> (proposal paper): 標準規格の変更についての提案文書</li> |
| 119 | +<li><strong>問題</strong> (issue): C++標準規格の問題や課題のこと</li> |
| 120 | +<li><strong>欠陥</strong> (defect): C++標準規格に含まれるいわば "バグ" のこと<ul> |
| 121 | +<li><strong>DR</strong> (defect report, defect resolution): 委員会で承認された欠陥の報告または欠陥の修正のこと</li> |
| 122 | +<li><strong>NAD</strong> (not a defect): 委員会により標準規格の欠陥ではないとされた問題のこと</li> |
| 123 | +<li><strong>DRWP</strong>: 最新の規格原案に取り込み済みの DR のこと</li> |
| 124 | +</ul> |
| 125 | +</li> |
| 126 | +<li><strong>WD</strong> (working draft): 作業原案</li> |
| 127 | +<li><strong>CD</strong> (committee draft): 委員会原案</li> |
| 128 | +<li><strong>FCD</strong> (final committee draft): 最終委員会原案</li> |
| 129 | +<li><strong>DIS</strong> (draft international standard): 国際規格案</li> |
| 130 | +<li><strong>FDIS</strong> (final draft international standard): 最終国際規格案</li> |
| 131 | +<li><strong>IS</strong> (international standard): 国際規格</li> |
| 132 | +<li><strong>TR</strong> (technical report): 技術報告書。用例: TR1</li> |
| 133 | +<li><strong>TS</strong> (technical specifications): 技術仕様書。用例: Concepts TS</li> |
| 134 | +</ul> |
| 135 | +<h2>参照</h2> |
| 136 | +<ul> |
| 137 | +<li>標準規格<ul> |
| 138 | +<li><a href="https://www.iso.org/standard/83626.html" target="_blank">ISO/IEC 14882:2024 - Programming languages — C++</a></li> |
| 139 | +<li><a href="https://www.iso.org/standard/79358.html" target="_blank">ISO/IEC 14882:2020 - Programming languages — C++</a></li> |
| 140 | +<li><a href="https://www.iso.org/standard/68564.html" target="_blank">ISO/IEC 14882:2017 - Programming languages -- C++</a></li> |
| 141 | +<li><a href="https://www.iso.org/standard/64029.html" target="_blank">ISO/IEC 14882:2014 - Information technology -- Programming languages -- C++</a></li> |
| 142 | +<li><a href="https://www.iso.org/standard/50372.html" target="_blank">ISO/IEC 14882:2011 - Information technology -- Programming languages -- C++</a></li> |
| 143 | +<li><a href="https://www.iso.org/standard/38110.html" target="_blank">ISO/IEC 14882:2003 - Programming languages -- C++</a></li> |
| 144 | +<li><a href="https://www.iso.org/standard/25845.html" target="_blank">ISO/IEC 14882:1998 - Programming languages -- C++</a></li> |
| 145 | +<li><a href="https://webdesk.jsa.or.jp/books/W11M0090/index/?bunsyo_id=JIS%20X%203014:2003" target="_blank">JIS X 3014:2003 プログラム言語C++/Information Technology -- Programming languages -- C++ 日本規格協会 JSA Webdesk</a></li> |
| 146 | +</ul> |
| 147 | +</li> |
| 148 | +<li><a href="http://en.cppreference.com/w/cpp/experimental" target="_blank">Experimental C++ Features - cppreference.com</a></li> |
| 149 | +<li><a href="https://stackoverflow.com/questions/29115656/which-draft-is-closest-to-the-c14-standard" target="_blank">c++ - Which draft is closest to the C++14 standard? - Stack Overflow</a></li> |
| 150 | +<li><a href="https://stackoverflow.com/questions/81656/where-do-i-find-the-current-c-or-c-standard-documents" target="_blank">Where do I find the current C or C++ standard documents? - Stack Overflow</a></li> |
| 151 | +<li><a href="https://stackoverflow.com/questions/11053960/how-are-the-cplusplus-directive-defined-in-various-compilers" target="_blank">c++ - How are the __cplusplus directive defined in various compilers? - Stack Overflow</a></li> |
| 152 | +<li><a href="http://www.open-std.org/jtc1/sc22/wg21/" target="_blank">ISO/IEC JTC1/SC22/WG21 - The C++ Standards Committee - ISOCPP</a></li> |
| 153 | +<li><a href="https://ja.wikipedia.org/wiki/%E5%9B%BD%E9%9A%9B%E6%A8%99%E6%BA%96%E5%8C%96%E6%A9%9F%E6%A7%8B" target="_blank">国際標準化機構 - Wikipedia</a></li> |
| 154 | +<li><a href="https://ja.wikipedia.org/wiki/%E5%9B%BD%E9%9A%9B%E9%9B%BB%E6%B0%97%E6%A8%99%E6%BA%96%E4%BC%9A%E8%AD%B0" target="_blank">国際電気標準会議 - Wikipedia</a></li> |
| 155 | +<li><a href="https://ja.wikipedia.org/wiki/ISO/IEC_JTC_1" target="_blank">ISO/IEC JTC 1 - Wikipedia</a></li> |
| 156 | +<li><a href="https://ja.wikipedia.org/wiki/ISO/IEC_JTC_1/SC_22" target="_blank">ISO/IEC JTC 1/SC 22 - Wikipedia</a></li> |
| 157 | +</ul></div></content> |
| 158 | + |
| 159 | + <author> |
| 160 | + <name>Akira Takahashi</name> |
| 161 | + <email>faithandbrave@gmail.com</email> |
| 162 | + </author> |
| 163 | + </entry> |
| 164 | + |
9 | 165 | <entry> |
10 | 166 | <title>basic_string -- basic_string : 検索エンジン用のページ別名を登録 #1545</title> |
11 | 167 | <link href="https://cpprefjp.github.io/reference/string/basic_string.html"/> |
@@ -1573,33 +1729,6 @@ index f26bd2973..57925ad38 100644 |
1573 | 1729 |
|
1574 | 1730 | ## 例 |
1575 | 1731 |
|
1576 | | -</code></pre></summary> |
1577 | | - |
1578 | | - <author> |
1579 | | - <name>Koichi Murase</name> |
1580 | | - <email>myoga.murase@gmail.com</email> |
1581 | | - </author> |
1582 | | - </entry> |
1583 | | - |
1584 | | - <entry> |
1585 | | - <title>domain_error -- fix(domain_error): 基底クラスを "{public => logic}_error" に修正</title> |
1586 | | - <link href="https://cpprefjp.github.io/reference/stdexcept/domain_error.html"/> |
1587 | | - <id>498653ba1b2192e2bc75e08d582d515fae8eccdd:reference/stdexcept/domain_error.md</id> |
1588 | | - <updated>2026-01-06T12:21:17+09:00</updated> |
1589 | | - |
1590 | | - <summary type="html"><pre><code>diff --git a/reference/stdexcept/domain_error.md b/reference/stdexcept/domain_error.md |
1591 | | -index 5e0456f35..26b923db5 100644 |
1592 | | ---- a/reference/stdexcept/domain_error.md |
1593 | | -+++ b/reference/stdexcept/domain_error.md |
1594 | | -@@ -6,7 +6,7 @@ |
1595 | | - |
1596 | | - ```cpp |
1597 | | - namespace std { |
1598 | | -- class domain_error : public public_error; |
1599 | | -+ class domain_error : public logic_error; |
1600 | | - } |
1601 | | - ``` |
1602 | | - |
1603 | 1732 | </code></pre></summary> |
1604 | 1733 |
|
1605 | 1734 | <author> |
|
0 commit comments