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-25T05:23:56.964476 </updated >
6
- <id >6addb153-c535-4f02-ac07-32f9dff60486 </id >
5
+ <updated >2025-04-25T05:29:40.497240 </updated >
6
+ <id >3beb944d-41dc-457a-8bd5-d80505df5201 </id >
7
7
8
8
9
+ <entry >
10
+ <title >contract_violation -- reference/contracts/contract_violation.md: Fixed meta header</title >
11
+ <link href =" https://cpprefjp.github.io/reference/contracts/contract_violation.html" />
12
+ <id >f9d79b2bc4bfc34638b6c66d24b6ae4cdf26179b:reference/contracts/contract_violation.md</id >
13
+ <updated >2025-04-25T14:25:58+09:00</updated >
14
+
15
+ <summary type =" html" >< pre>< code> diff --git a/reference/contracts/contract_violation.md b/reference/contracts/contract_violation.md
16
+ index 9d0cea8eb..d54687744 100644
17
+ --- a/reference/contracts/contract_violation.md
18
+ +++ b/reference/contracts/contract_violation.md
19
+ @@ -1,5 +1,5 @@
20
+ # contract_violation
21
+ -* contract[meta header]
22
+ +* contracts[meta header]
23
+ * class[meta id-type]
24
+ * std[meta namespace]
25
+ * future[meta cpp]
26
+ < /code>< /pre> </summary >
27
+
28
+ <author >
29
+ <name >rotarymars</name >
30
+ <email >s.goto2050@gmail.com</email >
31
+ </author >
32
+ </entry >
33
+
9
34
<entry >
10
35
<title >contracts -- reference/contracts.md,reference/contracts/contract_violation.md: Fixed link</title >
11
36
<link href =" https://cpprefjp.github.io/reference/contracts.html" />
@@ -1165,87 +1190,4 @@ index 000000000..9d0cea8eb
1165
1190
</author >
1166
1191
</entry >
1167
1192
1168
- <entry >
1169
- <title >int_fast64_t -- reference/cstdint/int_fast64_t.md: Created sample program</title >
1170
- <link href =" https://cpprefjp.github.io/reference/cstdint/int_fast64_t.html" />
1171
- <id >28c1ed525efc0316f248008b0f4fab431da3ac45:reference/cstdint/int_fast64_t.md</id >
1172
- <updated >2025-04-25T12:18:20+09:00</updated >
1173
-
1174
- <summary type =" html" >< pre>< code> diff --git a/reference/cstdint/int_fast64_t.md b/reference/cstdint/int_fast64_t.md
1175
- index 600ee1eff..de6d1bee6 100644
1176
- --- a/reference/cstdint/int_fast64_t.md
1177
- +++ b/reference/cstdint/int_fast64_t.md
1178
- @@ -16,6 +16,55 @@ namespace std {
1179
-
1180
- [`int64_t`](int64_t.md)型が環境によっては定義されないため、そのような状況でこの型を使用する。
1181
-
1182
- +## 例
1183
- +```cpp example
1184
- +#include & lt;iostream& gt;
1185
- +#include & lt;cstdint& gt;
1186
- +#include & lt;type_traits& gt;
1187
- +#include & lt;limits& gt;
1188
- +
1189
- +int main()
1190
- +{
1191
- + // int_fast64_tの使用例
1192
- + std::int_fast64_t value = 1234567890123456789LL;
1193
- +
1194
- + // 値を出力
1195
- + std::cout & lt;& lt; & #34;value: & #34; & lt;& lt; value & lt;& lt; std::endl;
1196
- +
1197
- + // サイズを確認(処理系によって異なる可能性がある)
1198
- + std::cout & lt;& lt; & #34;size of int_fast64_t: & #34; & lt;& lt; sizeof(std::int_fast64_t) & lt;& lt; & #34; bytes& #34; & lt;& lt; std::endl;
1199
- +
1200
- + // 最小値と最大値
1201
- + std::cout & lt;& lt; & #34;minimum value: & #34; & lt;& lt; std::numeric_limits& lt;std::int_fast64_t& gt;::min() & lt;& lt; std::endl;
1202
- + std::cout & lt;& lt; & #34;maximum value: & #34; & lt;& lt; std::numeric_limits& lt;std::int_fast64_t& gt;::max() & lt;& lt; std::endl;
1203
- +
1204
- + // int64_tとの比較
1205
- + std::cout & lt;& lt; & #34;int_fast64_t is the same as int64_t: & #34;
1206
- + & lt;& lt; std::is_same& lt;std::int_fast64_t, std::int64_t& gt;::value & lt;& lt; std::endl;
1207
- +
1208
- + // 演算の例(オーバーフローに注意)
1209
- + std::int_fast64_t a = 9000000000000000000LL;
1210
- + std::int_fast64_t b = 1000000000000000000LL;
1211
- + std::int_fast64_t sum = a + b; // 処理系によってはオーバーフローの可能性あり
1212
- +
1213
- + std::cout & lt;& lt; & #34;9000000000000000000 + 1000000000000000000 = & #34; & lt;& lt; sum & lt;& lt; std::endl;
1214
- +
1215
- + return 0;
1216
- +}
1217
- +```
1218
- +
1219
- +### 出力例
1220
- +```
1221
- +value: 1234567890123456789
1222
- +size of int_fast64_t: 8 bytes
1223
- +minimum value: -9223372036854775808
1224
- +maximum value: 9223372036854775807
1225
- +int_fast64_t is the same as int64_t: 0
1226
- +9000000000000000000 + 1000000000000000000 = -8446744073709551616
1227
- +```
1228
- +
1229
- +この出力例は特定の環境に依存しており、処理系によって異なる可能性があります。特に、`int_fast64_t`のサイズやオーバーフロー動作は処理系によって異なることがある。
1230
- +
1231
- ## バージョン
1232
- ### 言語
1233
- - C++11
1234
- @@ -25,3 +74,8 @@ namespace std {
1235
- - [GCC](/implementation.md#gcc): 4.7.0 [mark verified]
1236
- - [ICC](/implementation.md#icc): ??
1237
- - [Visual C++](/implementation.md#visual_cpp): 2010 [mark verified], 2012 [mark verified], 2013 [mark verified]
1238
- +
1239
- +## 参照
1240
- +- [`& lt;cstdint& gt;`](/reference/cstdint.md)
1241
- +- [`INT_FAST64_MIN`](int_fast64_min.md)
1242
- +- [`INT_FAST64_MAX`](int_fast64_max.md)
1243
- < /code>< /pre> </summary >
1244
-
1245
- <author >
1246
- <name >rotarymars</name >
1247
- <email >s.goto2050@gmail.com</email >
1248
- </author >
1249
- </entry >
1250
-
1251
1193
</feed >
0 commit comments