|
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-25T03:51:01.787922</updated> |
6 |
| - <id>9502addf-7f5d-4437-9a13-a3ff17500d44</id> |
| 5 | + <updated>2025-04-25T04:55:07.403454</updated> |
| 6 | + <id>92024ad1-e795-49f3-98d0-ca2adc46d6e7</id> |
7 | 7 |
|
8 | 8 |
|
| 9 | + <entry> |
| 10 | + <title>C++ (将来) -- lang/future.md: Fixed typo</title> |
| 11 | + <link href="https://cpprefjp.github.io/lang/future.html"/> |
| 12 | + <id>31610ca535d5e0e642bdef92f5f2548196486467:lang/future.md</id> |
| 13 | + <updated>2025-04-25T13:51:33+09:00</updated> |
| 14 | + |
| 15 | + <content type="html"><h1 itemprop="name"><span class="token">C++ (将来)</span></h1> |
| 16 | +<div itemprop="articleBody"><h2>概要</h2> |
| 17 | +<p>ここでは、将来のC++で検討されているが、C++のバージョンが定まっていない機能を紹介する。</p> |
| 18 | +<p>cpprefjpでは基本的に<a href="../start_editing.html">Working Draftに採択された機能のみを解説している</a>ため、このページに項目が積極的に追加されることはない。</p> |
| 19 | +<p>しかし、稀ではあるが、ある提案が一度は採択されたにもかかわらず後に取り下げられることがある。例えば、C++11で一度採択されたあと取り下げられ、最終的にC++20で採択された<a href="cpp20/concepts.html">コンセプト</a>がそうである。</p> |
| 20 | +<p>そのような提案がすでにcpprefjpで解説されている場合、その記事をここへ移動する。そして、将来のC++において再び採択されれば、そのバージョンへ記事を移動する。</p> |
| 21 | +<h2>言語機能</h2> |
| 22 | +<table border="1" bordercolor="#888" style="border-collapse:collapse"> |
| 23 | +<thead> |
| 24 | +<tr> |
| 25 | +<th>言語機能</th> |
| 26 | +<th>説明</th> |
| 27 | +</tr> |
| 28 | +</thead> |
| 29 | +<tbody> |
| 30 | +<tr> |
| 31 | +<td><a href="future/contract-based_programming.html">契約に基づくプログラミング</a></td> |
| 32 | +<td>事前条件、事後条件、表明を宣言する新たな属性構文を追加</td> |
| 33 | +</tr> |
| 34 | +</tbody> |
| 35 | +</table> |
| 36 | +<h2>ライブラリ</h2> |
| 37 | +<table border="1" bordercolor="#888" style="border-collapse:collapse"> |
| 38 | +<thead> |
| 39 | +<tr> |
| 40 | +<th>ヘッダ</th> |
| 41 | +<th>説明</th> |
| 42 | +</tr> |
| 43 | +</thead> |
| 44 | +<tbody> |
| 45 | +<tr> |
| 46 | +<td><code><a href="../reference/contracts.html">&lt;contracts&gt;</a></code></td> |
| 47 | +<td>契約違反のハンドリング</td> |
| 48 | +</tr> |
| 49 | +</tbody> |
| 50 | +</table></div></content> |
| 51 | + |
| 52 | + <author> |
| 53 | + <name>rotarymars</name> |
| 54 | + <email>s.goto2050@gmail.com</email> |
| 55 | + </author> |
| 56 | + </entry> |
| 57 | + |
9 | 58 | <entry>
|
10 | 59 | <title>C++ (将来) -- lang/future.md: Fixed link</title>
|
11 | 60 | <link href="https://cpprefjp.github.io/lang/future.html"/>
|
@@ -1128,78 +1177,6 @@ index 0131bce40..54a861717 100644
|
1128 | 1177 | +
|
1129 | 1178 | +この出力例は処理系によって異なる場合がある。特に、`int_fast64_t`の実際の型が処理系によって異なる可能性があるため、最小値やアンダーフロー動作も異なることがある。
|
1130 | 1179 |
|
1131 |
| - ## バージョン |
1132 |
| - ### 言語 |
1133 |
| -</code></pre></summary> |
1134 |
| - |
1135 |
| - <author> |
1136 |
| - <name>rotarymars</name> |
1137 |
| - <email>s.goto2050@gmail.com</email> |
1138 |
| - </author> |
1139 |
| - </entry> |
1140 |
| - |
1141 |
| - <entry> |
1142 |
| - <title>INT_FAST64_MAX -- reference/cstdint/int_fast64_max.md: Created sample program</title> |
1143 |
| - <link href="https://cpprefjp.github.io/reference/cstdint/int_fast64_max.html"/> |
1144 |
| - <id>d57130512739ec1b5cf71789440e7228709d52e6:reference/cstdint/int_fast64_max.md</id> |
1145 |
| - <updated>2025-04-25T12:09:16+09:00</updated> |
1146 |
| - |
1147 |
| - <summary type="html"><pre><code>diff --git a/reference/cstdint/int_fast64_max.md b/reference/cstdint/int_fast64_max.md |
1148 |
| -index c01b4e58a..baf452a18 100644 |
1149 |
| ---- a/reference/cstdint/int_fast64_max.md |
1150 |
| -+++ b/reference/cstdint/int_fast64_max.md |
1151 |
| -@@ -8,7 +8,52 @@ |
1152 |
| - ``` |
1153 |
| - |
1154 |
| - ## 概要 |
1155 |
| --[`int_fast64_t`](int_fast64_t.md) の最大値。 |
1156 |
| -+[`int_fast64_t`](int_fast64_t.md) の最大値を表す定数。 |
1157 |
| -+ |
1158 |
| -+[`std::numeric_limits`](/reference/limits/numeric_limits.md)`&lt;int_fast64_t&gt;::`[`max()`](/reference/limits/numeric_limits/max.md) と等しい。 |
1159 |
| -+ |
1160 |
| -+## 例 |
1161 |
| -+```cpp example |
1162 |
| -+#include &lt;iostream&gt; |
1163 |
| -+#include &lt;cstdint&gt; |
1164 |
| -+#include &lt;limits&gt; |
1165 |
| -+ |
1166 |
| -+int main() |
1167 |
| -+{ |
1168 |
| -+ std::cout &lt;&lt; &#34;INT_FAST64_MAX: &#34; &lt;&lt; INT_FAST64_MAX &lt;&lt; std::endl; |
1169 |
| -+ |
1170 |
| -+ // numeric_limitsによる値と一致することを確認 |
1171 |
| -+ std::cout &lt;&lt; &#34;numeric_limits&lt;int_fast64_t&gt;::max(): &#34; |
1172 |
| -+ &lt;&lt; std::numeric_limits&lt;std::int_fast64_t&gt;::max() &lt;&lt; std::endl; |
1173 |
| -+ |
1174 |
| -+ std::cout &lt;&lt; &#34;INT_FAST64_MAX == numeric_limits&lt;int_fast64_t&gt;::max(): &#34; |
1175 |
| -+ &lt;&lt; std::boolalpha |
1176 |
| -+ &lt;&lt; (INT_FAST64_MAX == std::numeric_limits&lt;std::int_fast64_t&gt;::max()) &lt;&lt; std::endl; |
1177 |
| -+ |
1178 |
| -+ // 型の確認 |
1179 |
| -+ std::int_fast64_t max_value = INT_FAST64_MAX; |
1180 |
| -+ std::cout &lt;&lt; &#34;型を通したときの値: &#34; &lt;&lt; max_value &lt;&lt; std::endl; |
1181 |
| -+ |
1182 |
| -+ // オーバーフローの確認 |
1183 |
| -+ std::int_fast64_t value = INT_FAST64_MAX; |
1184 |
| -+ std::cout &lt;&lt; &#34;INT_FAST64_MAX: &#34; &lt;&lt; value &lt;&lt; std::endl; |
1185 |
| -+ std::cout &lt;&lt; &#34;INT_FAST64_MAX + 1: &#34; &lt;&lt; value + 1 &lt;&lt; std::endl; |
1186 |
| -+ |
1187 |
| -+ return 0; |
1188 |
| -+} |
1189 |
| -+``` |
1190 |
| -+ |
1191 |
| -+### 出力例 |
1192 |
| -+``` |
1193 |
| -+INT_FAST64_MAX: 9223372036854775807 |
1194 |
| -+numeric_limits&lt;int_fast64_t&gt;::max(): 9223372036854775807 |
1195 |
| -+INT_FAST64_MAX == numeric_limits&lt;int_fast64_t&gt;::max(): true |
1196 |
| -+型を通したときの値: 9223372036854775807 |
1197 |
| -+INT_FAST64_MAX: 9223372036854775807 |
1198 |
| -+INT_FAST64_MAX + 1: -9223372036854775808 |
1199 |
| -+``` |
1200 |
| -+ |
1201 |
| -+この出力例は処理系によって異なる場合がある。特に、`int_fast64_t`の実際の型が処理系によって異なる可能性があるため、最大値やオーバーフロー動作も異なることがある。 |
1202 |
| - |
1203 | 1180 | ## バージョン
|
1204 | 1181 | ### 言語
|
1205 | 1182 | </code></pre></summary>
|
|
0 commit comments