Skip to content

Commit 1181b09

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 76df8c3 commit 1181b09

File tree

6 files changed

+166
-103
lines changed

6 files changed

+166
-103
lines changed

reference/contracts.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="2025-04-25T03:45:01">
180-
2025年04月25日 03時45分01秒
179+
<span itemprop="datePublished" content="2025-04-25T05:20:09">
180+
2025年04月25日 05時20分09秒
181181
</span>
182182
<br/>
183183
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -212,7 +212,7 @@
212212
</thead>
213213
<tbody>
214214
<tr>
215-
<td><code><a href="contract/contract_violation.html">contract_violation</a></code></td>
215+
<td><code><a href="contracts/contract_violation.html">contract_violation</a></code></td>
216216
<td>契約違反に関する情報 (class)</td>
217217
<td>C++26</td>
218218
</tr>

reference/contract/contract_violation.html renamed to reference/contracts/contract_violation.html

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
<meta name="title" content="contract_violation - cpprefjp C++日本語リファレンス" />
2626
<meta itemprop="name" content="contract_violation - cpprefjp C++日本語リファレンス" />
2727
<meta property="og:title" content="contract_violation - cpprefjp C++日本語リファレンス" />
28-
<meta property="og:url" content="https://cpprefjp.github.io/reference/contract/contract_violation.html" />
28+
<meta property="og:url" content="https://cpprefjp.github.io/reference/contracts/contract_violation.html" />
2929
<meta property="og:site_name" content="cpprefjp - C++日本語リファレンス" />
3030
<meta property="og:type" content="article" />
3131
<meta property="og:description" content="" />
3232
<meta name="twitter:card" content="summary" />
3333
<meta name="twitter:title" content="contract_violation - cpprefjp C++日本語リファレンス" />
34-
<meta name="twitter:url" content="https://cpprefjp.github.io/reference/contract/contract_violation.html" />
34+
<meta name="twitter:url" content="https://cpprefjp.github.io/reference/contracts/contract_violation.html" />
3535
<meta name="twitter:description" content="" />
3636

3737

@@ -68,7 +68,7 @@
6868

6969
</head>
7070
<body>
71-
<header data-kunai-mdinfo="{&#34;meta&#34;: {&#34;header&#34;: [&#34;contract&#34;], &#34;id-type&#34;: [&#34;class&#34;], &#34;namespace&#34;: [&#34;std&#34;], &#34;cpp&#34;: [&#34;future&#34;]}, &#34;sources&#34;: [], &#34;page_id&#34;: [&#34;reference&#34;, &#34;contract&#34;, &#34;contract_violation&#34;]}">
71+
<header data-kunai-mdinfo="{&#34;meta&#34;: {&#34;header&#34;: [&#34;contract&#34;], &#34;id-type&#34;: [&#34;class&#34;], &#34;namespace&#34;: [&#34;std&#34;], &#34;cpp&#34;: [&#34;future&#34;]}, &#34;sources&#34;: [], &#34;page_id&#34;: [&#34;reference&#34;, &#34;contracts&#34;, &#34;contract_violation&#34;]}">
7272
<nav class="navbar navbar-default" role="navigation">
7373
<div class="container-fluid">
7474
<div class="navbar-header">
@@ -158,9 +158,11 @@
158158
<li itemscope itemtype="http://www.schema.org/SiteNavigationElement">
159159
<span>
160160

161-
162-
<span itemprop="name">contract</span>
163-
161+
<a href="../../reference/contracts.html" itemprop="url">
162+
163+
<span itemprop="name">contracts</span>
164+
165+
</a>
164166

165167
</span>
166168
</li>
@@ -186,22 +188,22 @@
186188

187189
<p class="text-right"><small>
188190
最終更新日時(UTC):
189-
<span itemprop="datePublished" content="2022-09-29T08:08:45">
190-
2022年09月29日 08時08分45秒
191+
<span itemprop="datePublished" content="2025-04-25T05:20:09">
192+
2025年04月25日 05時20分09秒
191193
</span>
192194
<br/>
193195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
194-
<span itemprop="name">Akira Takahashi</span>
196+
<span itemprop="name">rotarymars</span>
195197
</span>
196198
が更新
197199
</small></p>
198200

199201

200202
<p class="text-right">
201-
<a class="history" target="_blank" href="https://github.com/cpprefjp/site/commits/master/reference/contract/contract_violation.md">
203+
<a class="history" target="_blank" href="https://github.com/cpprefjp/site/commits/master/reference/contracts/contract_violation.md">
202204
<span class="fa fa-fw fa-clock-o fa-flip-horizontal"></span>履歴
203205
</a>
204-
<a class="edit" target="_blank" href="https://github.com/cpprefjp/site/edit/master/reference/contract/contract_violation.md">
206+
<a class="edit" target="_blank" href="https://github.com/cpprefjp/site/edit/master/reference/contracts/contract_violation.md">
205207
<span class="fa fa-fw fa-pencil"></span>編集
206208
</a>
207209
</p>
@@ -239,27 +241,27 @@ <h2>メンバ関数</h2>
239241
</thead>
240242
<tbody>
241243
<tr>
242-
<td><code><span href="https://cpprefjp.github.io/reference/contract/contract_violation/line_number.md.nolink">line_number</span></code></td>
244+
<td><code><span href="https://cpprefjp.github.io/reference/contracts/contract_violation/line_number.md.nolink">line_number</span></code></td>
243245
<td>契約違反が発生したソースコード上の行番号</td>
244246
<td>C++ (将来)</td>
245247
</tr>
246248
<tr>
247-
<td><code><span href="https://cpprefjp.github.io/reference/contract/contract_violation/file_name.md.nolink">file_name</span></code></td>
249+
<td><code><span href="https://cpprefjp.github.io/reference/contracts/contract_violation/file_name.md.nolink">file_name</span></code></td>
248250
<td>契約違反が発生したソースコードのファイル名</td>
249251
<td>C++ (将来)</td>
250252
</tr>
251253
<tr>
252-
<td><code><span href="https://cpprefjp.github.io/reference/contract/contract_violation/function_name.md.nolink">function_name</span></code></td>
254+
<td><code><span href="https://cpprefjp.github.io/reference/contracts/contract_violation/function_name.md.nolink">function_name</span></code></td>
253255
<td>契約違反が発生した関数の名前</td>
254256
<td>C++ (将来)</td>
255257
</tr>
256258
<tr>
257-
<td><code><span href="https://cpprefjp.github.io/reference/contract/contract_violation/comment.md.nolink">comment</span></code></td>
259+
<td><code><span href="https://cpprefjp.github.io/reference/contracts/contract_violation/comment.md.nolink">comment</span></code></td>
258260
<td>契約違反の原因となった<a class="cpprefjp-defined-word" data-desc="boolを返す関数・関数オブジェクト。predicate">述語</a>を説明する<a class="cpprefjp-defined-word" data-desc="処理系定義の動作。処理系によって事前に定めた動作をする" href="../../implementation-compliance.html#dfn-implementation-defined-behavior">処理系定義</a>のテキスト</td>
259261
<td>C++ (将来)</td>
260262
</tr>
261263
<tr>
262-
<td><code><span href="https://cpprefjp.github.io/reference/contract/contract_violation/assertion_level.md.nolink">assertion_level</span></code></td>
264+
<td><code><span href="https://cpprefjp.github.io/reference/contracts/contract_violation/assertion_level.md.nolink">assertion_level</span></code></td>
263265
<td>違反した契約のアサーションレベル</td>
264266
<td>C++ (将来)</td>
265267
</tr>

rss.xml

Lines changed: 135 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,143 @@
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<title>cpprefjp - C++日本語リファレンス</title>
44
<link href="https://cpprefjp.github.io" />
5-
<updated>2025-04-25T04:55:07.403454</updated>
6-
<id>92024ad1-e795-49f3-98d0-ca2adc46d6e7</id>
5+
<updated>2025-04-25T05:23:56.964476</updated>
6+
<id>6addb153-c535-4f02-ac07-32f9dff60486</id>
77

88

9+
<entry>
10+
<title>contracts -- reference/contracts.md,reference/contracts/contract_violation.md: Fixed link</title>
11+
<link href="https://cpprefjp.github.io/reference/contracts.html"/>
12+
<id>d3947782d4c569e5a4399959ce8b8ab8e34f61a9:reference/contracts.md</id>
13+
<updated>2025-04-25T14:20:09+09:00</updated>
14+
15+
<content type="html">&lt;div class=&#34;header&#34;&gt;&amp;lt;contracts&amp;gt;&lt;/div&gt;&lt;h1 itemprop=&#34;name&#34;&gt;&lt;span class=&#34;token&#34;&gt;contracts&lt;/span&gt;&lt;span class=&#34;cpp cpp26&#34; title=&#34;C++26で追加&#34;&gt;(C++26)&lt;/span&gt;&lt;/h1&gt;
16+
&lt;div itemprop=&#34;articleBody&#34;&gt;&lt;p&gt;&lt;code&gt;&amp;lt;contracts&amp;gt;&lt;/code&gt;ヘッダでは、&lt;a href=&#34;../lang/cpp26/contracts.html&#34;&gt;契約違反&lt;/a&gt;のハンドリングのための機能を定義する。&lt;/p&gt;
17+
&lt;table border=&#34;1&#34; bordercolor=&#34;#888&#34; style=&#34;border-collapse:collapse&#34;&gt;
18+
&lt;thead&gt;
19+
&lt;tr&gt;
20+
&lt;th&gt;名前&lt;/th&gt;
21+
&lt;th&gt;説明&lt;/th&gt;
22+
&lt;th&gt;対応バージョン&lt;/th&gt;
23+
&lt;/tr&gt;
24+
&lt;/thead&gt;
25+
&lt;tbody&gt;
26+
&lt;tr&gt;
27+
&lt;td&gt;&lt;code&gt;&lt;a href=&#34;contracts/contract_violation.html&#34;&gt;contract_violation&lt;/a&gt;&lt;/code&gt;&lt;/td&gt;
28+
&lt;td&gt;契約違反に関する情報 (class)&lt;/td&gt;
29+
&lt;td&gt;C++26&lt;/td&gt;
30+
&lt;/tr&gt;
31+
&lt;/tbody&gt;
32+
&lt;/table&gt;
33+
&lt;h2&gt;バージョン&lt;/h2&gt;
34+
&lt;h3&gt;言語&lt;/h3&gt;
35+
&lt;ul&gt;
36+
&lt;li&gt;C++26&lt;/li&gt;
37+
&lt;/ul&gt;
38+
&lt;h3&gt;処理系&lt;/h3&gt;
39+
&lt;ul&gt;
40+
&lt;li&gt;&lt;a href=&#34;../implementation.html#clang&#34;&gt;Clang&lt;/a&gt;: 未実装&lt;/li&gt;
41+
&lt;li&gt;&lt;a href=&#34;../implementation.html#gcc&#34;&gt;GCC&lt;/a&gt;: 未実装&lt;/li&gt;
42+
&lt;li&gt;&lt;a href=&#34;../implementation.html#icc&#34;&gt;ICC&lt;/a&gt;: ?&lt;/li&gt;
43+
&lt;li&gt;&lt;a href=&#34;../implementation.html#visual_cpp&#34;&gt;Visual C++&lt;/a&gt;: 未実装&lt;/li&gt;
44+
&lt;/ul&gt;
45+
&lt;h2&gt;関連項目&lt;/h2&gt;
46+
&lt;ul&gt;
47+
&lt;li&gt;&lt;a href=&#34;../lang/future/contract-based_programming.html&#34;&gt;契約に基づくプログラミング&lt;/a&gt;&lt;/li&gt;
48+
&lt;li&gt;&lt;a href=&#34;../lang/cpp26/contracts.html&#34;&gt;契約プログラミング&lt;/a&gt;&lt;/li&gt;
49+
&lt;/ul&gt;
50+
&lt;h2&gt;参照&lt;/h2&gt;
51+
&lt;ul&gt;
52+
&lt;li&gt;&lt;a href=&#34;http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0542r5.html&#34; target=&#34;_blank&#34;&gt;P0542R5 Support for contract based programming in C++&lt;/a&gt;&lt;/li&gt;
53+
&lt;/ul&gt;&lt;/div&gt;</content>
54+
55+
<author>
56+
<name>rotarymars</name>
57+
<email>s.goto2050@gmail.com</email>
58+
</author>
59+
</entry>
60+
61+
<entry>
62+
<title>contract_violation -- reference/contracts.md,reference/contracts/contract_violation.md: Fixed link</title>
63+
<link href="https://cpprefjp.github.io/reference/contracts/contract_violation.html"/>
64+
<id>d3947782d4c569e5a4399959ce8b8ab8e34f61a9:reference/contracts/contract_violation.md</id>
65+
<updated>2025-04-25T14:20:09+09:00</updated>
66+
67+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/contracts/contract_violation.md b/reference/contracts/contract_violation.md
68+
new file mode 100644
69+
index 000000000..9d0cea8eb
70+
--- /dev/null
71+
+++ b/reference/contracts/contract_violation.md
72+
@@ -0,0 +1,61 @@
73+
+# contract_violation
74+
+* contract[meta header]
75+
+* class[meta id-type]
76+
+* std[meta namespace]
77+
+* future[meta cpp]
78+
+
79+
+```cpp
80+
+namespace std {
81+
+ class contract_violation {
82+
+ public:
83+
+ uint_least32_t line_number() const noexcept;
84+
+ string_view file_name() const noexcept;
85+
+ string_view function_name() const noexcept;
86+
+ string_view comment() const noexcept;
87+
+ string_view assertion_level() const noexcept;
88+
+ };
89+
+}
90+
+```
91+
+
92+
+## 概要
93+
+
94+
+`contract_violation`クラスは、発生した[契約違反](/lang/future/contract-based_programming.md)に関する情報を提供する。
95+
+
96+
+契約違反が発生したとき、このクラスのオブジェクトが処理系定義の方法により構築され、違反ハンドラーに渡される。
97+
+
98+
+違反ハンドラーは`void(const std::contract_violation&amp;amp;) noexcept`または`void(const std::contract_violation&amp;amp;)`の型を持つ関数であり、
99+
+処理系定義の方法によって指定される。
100+
+
101+
+## メンバ関数
102+
+
103+
+| 名前 | 説明 | 対応バージョン |
104+
+|-----------------|----------------|----------------|
105+
+| [`line_number`](contract_violation/line_number.md.nolink) | 契約違反が発生したソースコード上の行番号 | C++ (将来) |
106+
+| [`file_name`](contract_violation/file_name.md.nolink) | 契約違反が発生したソースコードのファイル名 | C++ (将来) |
107+
+| [`function_name`](contract_violation/function_name.md.nolink) | 契約違反が発生した関数の名前 | C++ (将来) |
108+
+| [`comment`](contract_violation/comment.md.nolink) | 契約違反の原因となった述語を説明する処理系定義のテキスト | C++ (将来) |
109+
+| [`assertion_level`](contract_violation/assertion_level.md.nolink) | 違反した契約のアサーションレベル | C++ (将来) |
110+
+
111+
+
112+
+## 例
113+
+(執筆中)
114+
+
115+
+### 出力
116+
+(執筆中)
117+
+
118+
+## バージョン
119+
+### 言語
120+
+- C++ (将来)
121+
+
122+
+### 処理系
123+
+- [Clang](/implementation.md#clang): 未実装
124+
+- [GCC](/implementation.md#gcc): 未実装
125+
+- [ICC](/implementation.md#icc): ?
126+
+- [Visual C++](/implementation.md#visual_cpp): 未実装
127+
+
128+
+## 関連項目
129+
+- [契約に基づくプログラミング](/lang/future/contract-based_programming.md)
130+
+
131+
+## 参照
132+
+- [P0542R5 Support for contract based programming in C++](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0542r5.html)
133+
+- [P0788R3 Standard Library Specification in a Concepts and Contracts World](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0788r3.pdf)
134+
&lt;/code&gt;&lt;/pre&gt;</summary>
135+
136+
<author>
137+
<name>rotarymars</name>
138+
<email>s.goto2050@gmail.com</email>
139+
</author>
140+
</entry>
141+
9142
<entry>
10143
<title>C++ (将来) -- lang/future.md: Fixed typo</title>
11144
<link href="https://cpprefjp.github.io/lang/future.html"/>
@@ -1115,76 +1248,4 @@ index 600ee1eff..de6d1bee6 100644
11151248
</author>
11161249
</entry>
11171250

1118-
<entry>
1119-
<title>INT_FAST64_MIN -- reference/cstdint/int_fast64_min.md: Created sample program</title>
1120-
<link href="https://cpprefjp.github.io/reference/cstdint/int_fast64_min.html"/>
1121-
<id>c476d9c300d2e3d7a7bff81733057a31a33a037e:reference/cstdint/int_fast64_min.md</id>
1122-
<updated>2025-04-25T12:09:26+09:00</updated>
1123-
1124-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/cstdint/int_fast64_min.md b/reference/cstdint/int_fast64_min.md
1125-
index 0131bce40..54a861717 100644
1126-
--- a/reference/cstdint/int_fast64_min.md
1127-
+++ b/reference/cstdint/int_fast64_min.md
1128-
@@ -8,7 +8,52 @@
1129-
```
1130-
1131-
## 概要
1132-
-[`int_fast64_t`](int_fast64_t.md) の最小値。
1133-
+[`int_fast64_t`](int_fast64_t.md) の最小値を表す定数。
1134-
+
1135-
+[`std::numeric_limits`](/reference/limits/numeric_limits.md)`&amp;lt;int_fast64_t&amp;gt;::`[`min()`](/reference/limits/numeric_limits/min.md) と等しい。
1136-
+
1137-
+## 例
1138-
+```cpp example
1139-
+#include &amp;lt;iostream&amp;gt;
1140-
+#include &amp;lt;cstdint&amp;gt;
1141-
+#include &amp;lt;limits&amp;gt;
1142-
+
1143-
+int main()
1144-
+{
1145-
+ std::cout &amp;lt;&amp;lt; &amp;#34;INT_FAST64_MIN: &amp;#34; &amp;lt;&amp;lt; INT_FAST64_MIN &amp;lt;&amp;lt; std::endl;
1146-
+
1147-
+ // numeric_limitsによる値と一致することを確認
1148-
+ std::cout &amp;lt;&amp;lt; &amp;#34;numeric_limits&amp;lt;int_fast64_t&amp;gt;::min(): &amp;#34;
1149-
+ &amp;lt;&amp;lt; std::numeric_limits&amp;lt;std::int_fast64_t&amp;gt;::min() &amp;lt;&amp;lt; std::endl;
1150-
+
1151-
+ std::cout &amp;lt;&amp;lt; &amp;#34;INT_FAST64_MIN == numeric_limits&amp;lt;int_fast64_t&amp;gt;::min(): &amp;#34;
1152-
+ &amp;lt;&amp;lt; std::boolalpha
1153-
+ &amp;lt;&amp;lt; (INT_FAST64_MIN == std::numeric_limits&amp;lt;std::int_fast64_t&amp;gt;::min()) &amp;lt;&amp;lt; std::endl;
1154-
+
1155-
+ // 型の確認
1156-
+ std::int_fast64_t min_value = INT_FAST64_MIN;
1157-
+ std::cout &amp;lt;&amp;lt; &amp;#34;型を通したときの値: &amp;#34; &amp;lt;&amp;lt; min_value &amp;lt;&amp;lt; std::endl;
1158-
+
1159-
+ // アンダーフローの確認
1160-
+ std::int_fast64_t value = INT_FAST64_MIN;
1161-
+ std::cout &amp;lt;&amp;lt; &amp;#34;INT_FAST64_MIN: &amp;#34; &amp;lt;&amp;lt; value &amp;lt;&amp;lt; std::endl;
1162-
+ std::cout &amp;lt;&amp;lt; &amp;#34;INT_FAST64_MIN - 1: &amp;#34; &amp;lt;&amp;lt; value - 1 &amp;lt;&amp;lt; std::endl;
1163-
+
1164-
+ return 0;
1165-
+}
1166-
+```
1167-
+
1168-
+### 出力例
1169-
+```
1170-
+INT_FAST64_MIN: -9223372036854775808
1171-
+numeric_limits&amp;lt;int_fast64_t&amp;gt;::min(): -9223372036854775808
1172-
+INT_FAST64_MIN == numeric_limits&amp;lt;int_fast64_t&amp;gt;::min(): true
1173-
+型を通したときの値: -9223372036854775808
1174-
+INT_FAST64_MIN: -9223372036854775808
1175-
+INT_FAST64_MIN - 1: 9223372036854775807
1176-
+```
1177-
+
1178-
+この出力例は処理系によって異なる場合がある。特に、`int_fast64_t`の実際の型が処理系によって異なる可能性があるため、最小値やアンダーフロー動作も異なることがある。
1179-
1180-
## バージョン
1181-
### 言語
1182-
&lt;/code&gt;&lt;/pre&gt;</summary>
1183-
1184-
<author>
1185-
<name>rotarymars</name>
1186-
<email>s.goto2050@gmail.com</email>
1187-
</author>
1188-
</entry>
1189-
11901251
</feed>

sitemap.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@
941941

942942
<url>
943943
<loc>https://cpprefjp.github.io/reference/contracts.html</loc>
944-
<lastmod>2025-04-25T12:45:01+09:00</lastmod>
944+
<lastmod>2025-04-25T14:20:09+09:00</lastmod>
945945
<changefreq>daily</changefreq>
946946
<priority>0.8</priority>
947947
</url>
@@ -20679,13 +20679,6 @@
2067920679
<priority>0.6</priority>
2068020680
</url>
2068120681

20682-
<url>
20683-
<loc>https://cpprefjp.github.io/reference/contract/contract_violation.html</loc>
20684-
<lastmod>2025-04-03T12:32:11+09:00</lastmod>
20685-
<changefreq>daily</changefreq>
20686-
<priority>0.7</priority>
20687-
</url>
20688-
2068920682
<url>
2069020683
<loc>https://cpprefjp.github.io/reference/string/basic_string.html</loc>
2069120684
<lastmod>2025-04-03T12:32:11+09:00</lastmod>
@@ -34238,6 +34231,13 @@
3423834231
<priority>0.5</priority>
3423934232
</url>
3424034233

34234+
<url>
34235+
<loc>https://cpprefjp.github.io/reference/contracts/contract_violation.html</loc>
34236+
<lastmod>2025-04-25T14:20:09+09:00</lastmod>
34237+
<changefreq>daily</changefreq>
34238+
<priority>0.7</priority>
34239+
</url>
34240+
3424134241
<url>
3424234242
<loc>https://cpprefjp.github.io/reference/span/span.html</loc>
3424334243
<lastmod>2025-04-03T12:32:11+09:00</lastmod>

static/crsearch/crsearch.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/crsearch/crsearch.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)