Skip to content

Commit 25bd467

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 57b8695 commit 25bd467

File tree

3 files changed

+121
-133
lines changed

3 files changed

+121
-133
lines changed

reference/debugging.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-09-18T03:31:11">
180-
2024年09月18日 03時31分11秒
179+
<span itemprop="datePublished" content="2024-09-18T04:33:23">
180+
2024年09月18日 04時33分23秒
181181
</span>
182182
<br/>
183183
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -269,7 +269,7 @@ <h2>この機能が必要になった背景・経緯</h2>
269269
</tr>
270270
<tr>
271271
<td>EASTLライブラリ</td>
272-
<td><code>EASTL_DEBUG_BREAK()</code>マクロ (無条件ブレークポイント)</td>
272+
<td><code>EASTL_DEBUG_BREAK()</code>マクロ (無条件ブレークポイント)</td>
273273
</tr>
274274
<tr>
275275
<td>Catch2ライブラリ</td>

rss.xml

Lines changed: 117 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,125 @@
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<title>cpprefjp - C++日本語リファレンス</title>
44
<link href="https://cpprefjp.github.io" />
5-
<updated>2024-09-18T04:16:29.822147</updated>
6-
<id>c52d4988-c00c-466b-8f20-c327c5a8ed78</id>
5+
<updated>2024-09-18T04:36:21.537713</updated>
6+
<id>092167a7-07e0-492e-8ae2-026963ea4c06</id>
77

88

9+
<entry>
10+
<title>debugging -- fix typo</title>
11+
<link href="https://cpprefjp.github.io/reference/debugging.html"/>
12+
<id>964d94ab807c5b935fa0581bd3e6b70a61a1a2fc:reference/debugging.md</id>
13+
<updated>2024-09-18T13:33:23+09:00</updated>
14+
15+
<content type="html">&lt;div class=&#34;header&#34;&gt;&amp;lt;debugging&amp;gt;&lt;/div&gt;&lt;h1 itemprop=&#34;name&#34;&gt;&lt;span class=&#34;token&#34;&gt;debugging&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;debugging&amp;gt;&lt;/code&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;debugging/breakpoint.html&#34;&gt;breakpoint&lt;/a&gt;&lt;/code&gt;&lt;/td&gt;
28+
&lt;td&gt;ブレークポイントを設置する (functional)&lt;/td&gt;
29+
&lt;td&gt;C++26&lt;/td&gt;
30+
&lt;/tr&gt;
31+
&lt;tr&gt;
32+
&lt;td&gt;&lt;code&gt;&lt;a href=&#34;debugging/breakpoint_if_debugging.html&#34;&gt;breakpoint_if_debugging&lt;/a&gt;&lt;/code&gt;&lt;/td&gt;
33+
&lt;td&gt;デバッガ実行のみブレークポイントを設置する (functional)&lt;/td&gt;
34+
&lt;td&gt;C++26&lt;/td&gt;
35+
&lt;/tr&gt;
36+
&lt;tr&gt;
37+
&lt;td&gt;&lt;code&gt;&lt;a href=&#34;debugging/is_debugger_present.html&#34;&gt;is_debugger_present&lt;/a&gt;&lt;/code&gt;&lt;/td&gt;
38+
&lt;td&gt;デバッガ実行中か判定する (functional)&lt;/td&gt;
39+
&lt;td&gt;C++26&lt;/td&gt;
40+
&lt;/tr&gt;
41+
&lt;/tbody&gt;
42+
&lt;/table&gt;
43+
&lt;h2&gt;この機能が必要になった背景・経緯&lt;/h2&gt;
44+
&lt;p&gt;開発プラットフォームによってデバッガやブレークポイントの機能は提供されているが、本ライブラリのようにプログラム中に明示的にブレークポイントを設置し、プログラムとデバッガを対話させることでデバッグ体験が向上することがある。&lt;/p&gt;
45+
&lt;p&gt;実装経験としては以下のようなものがあり、これらをこのライブラリで標準化した:&lt;/p&gt;
46+
&lt;table border=&#34;1&#34; bordercolor=&#34;#888&#34; style=&#34;border-collapse:collapse&#34;&gt;
47+
&lt;thead&gt;
48+
&lt;tr&gt;
49+
&lt;th&gt;開発環境&lt;/th&gt;
50+
&lt;th&gt;機能&lt;/th&gt;
51+
&lt;/tr&gt;
52+
&lt;/thead&gt;
53+
&lt;tbody&gt;
54+
&lt;tr&gt;
55+
&lt;td&gt;Microsoft C/C++ Optimizing Compiler&lt;/td&gt;
56+
&lt;td&gt;&lt;code&gt;__debugbreak()&lt;/code&gt;関数 (無条件ブレークポイント)&lt;/td&gt;
57+
&lt;/tr&gt;
58+
&lt;tr&gt;
59+
&lt;td&gt;Win32 API&lt;/td&gt;
60+
&lt;td&gt;&lt;code&gt;IsDebuggerPresent()&lt;/code&gt;関数 (デバッガ実行中か判定)&lt;/td&gt;
61+
&lt;/tr&gt;
62+
&lt;tr&gt;
63+
&lt;td&gt;LLVM Clang&lt;/td&gt;
64+
&lt;td&gt;&lt;code&gt;__builtin_debugtrap()&lt;/code&gt;組み込み関数 (無条件ブレークポイント)&lt;/td&gt;
65+
&lt;/tr&gt;
66+
&lt;tr&gt;
67+
&lt;td&gt;arm Keil, ARM Compiler&lt;/td&gt;
68+
&lt;td&gt;&lt;code&gt;__breakpoint()&lt;/code&gt;関数 (無条件ブレークポイント)&lt;/td&gt;
69+
&lt;/tr&gt;
70+
&lt;tr&gt;
71+
&lt;td&gt;Portable Snippetsライブラリ&lt;/td&gt;
72+
&lt;td&gt;&lt;code&gt;psnip_trap()&lt;/code&gt;関数 (無条件ブレークポイント)&lt;/td&gt;
73+
&lt;/tr&gt;
74+
&lt;tr&gt;
75+
&lt;td&gt;Debug Breakライブラリ&lt;/td&gt;
76+
&lt;td&gt;&lt;code&gt;debug_break()&lt;/code&gt;関数 (無条件ブレークポイント)&lt;/td&gt;
77+
&lt;/tr&gt;
78+
&lt;tr&gt;
79+
&lt;td&gt;Boost.Testライブラリ&lt;/td&gt;
80+
&lt;td&gt;&lt;code&gt;debugger_break()&lt;/code&gt;関数 (無条件ブレークポイント)&lt;br /&gt; &lt;code&gt;under_debugger()&lt;/code&gt;関数 (出張っg実行中か判定)&lt;/td&gt;
81+
&lt;/tr&gt;
82+
&lt;tr&gt;
83+
&lt;td&gt;EASTLライブラリ&lt;/td&gt;
84+
&lt;td&gt;&lt;code&gt;EASTL_DEBUG_BREAK()&lt;/code&gt;マクロ (無条件ブレークポイント)&lt;/td&gt;
85+
&lt;/tr&gt;
86+
&lt;tr&gt;
87+
&lt;td&gt;Catch2ライブラリ&lt;/td&gt;
88+
&lt;td&gt;&lt;code&gt;CATCH_TRAP&lt;/code&gt;マクロ (無条件ブレークポイント)&lt;br /&gt; &lt;code&gt;CATCH_BREAK_INTO_DEBUGGER&lt;/code&gt;マクロ (条件付きブレークポイント)&lt;br /&gt; &lt;code&gt;isDebuggerActive()&lt;/code&gt;関数 (デバッガ実行中か判定)&lt;/td&gt;
89+
&lt;/tr&gt;
90+
&lt;tr&gt;
91+
&lt;td&gt;JUCEライブラリ&lt;/td&gt;
92+
&lt;td&gt;&lt;code&gt;JUCE_BREAK_IN_DEBUGGER&lt;/code&gt;マクロ (無条件ブレークポイント)&lt;br /&gt; &lt;code&gt;juce_isRunningUnderDebugger()&lt;/code&gt;関数、&lt;code&gt;Process::isRunningUnderDebugger()&lt;/code&gt;関数 (デバッガ実行中か判定)&lt;/td&gt;
93+
&lt;/tr&gt;
94+
&lt;tr&gt;
95+
&lt;td&gt;ImGuiライブラリ&lt;/td&gt;
96+
&lt;td&gt;&lt;code&gt;IM_DEBUG_BREAK()&lt;/code&gt;マクロ (無条件ブレークポイント)&lt;/td&gt;
97+
&lt;/tr&gt;
98+
&lt;tr&gt;
99+
&lt;td&gt;AWS C SDK&lt;/td&gt;
100+
&lt;td&gt;&lt;code&gt;aws_debug_break()&lt;/code&gt;関数 (条件付きブレークポイント)&lt;br /&gt; &lt;code&gt;aws_is_debugger_present()&lt;/code&gt;関数 (デバッガ実行中か判定)&lt;/td&gt;
101+
&lt;/tr&gt;
102+
&lt;tr&gt;
103+
&lt;td&gt;UnrealEngine&lt;/td&gt;
104+
&lt;td&gt;&lt;code&gt;UE_DEBUG_BREAK&lt;/code&gt;マクロ (条件付きブレークポイント)&lt;br /&gt; &lt;code&gt;IsDebuggerPresent()&lt;/code&gt;関数 (デバッガ実行中か判定)&lt;/td&gt;
105+
&lt;/tr&gt;
106+
&lt;/tbody&gt;
107+
&lt;/table&gt;
108+
&lt;h2&gt;バージョン&lt;/h2&gt;
109+
&lt;h3&gt;言語&lt;/h3&gt;
110+
&lt;ul&gt;
111+
&lt;li&gt;C++26&lt;/li&gt;
112+
&lt;/ul&gt;
113+
&lt;h2&gt;参照&lt;/h2&gt;
114+
&lt;ul&gt;
115+
&lt;li&gt;&lt;a href=&#34;https://open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2546r5.html&#34; target=&#34;_blank&#34;&gt;P2546R5 Debugging Support&lt;/a&gt;&lt;/li&gt;
116+
&lt;/ul&gt;&lt;/div&gt;</content>
117+
118+
<author>
119+
<name>Akira Takahashi</name>
120+
<email>[email protected]</email>
121+
</author>
122+
</entry>
123+
9124
<entry>
10125
<title>breakpoint -- &lt;debugging&gt; : コード例が間違ってたのを修正 #1232</title>
11126
<link href="https://cpprefjp.github.io/reference/debugging/breakpoint.html"/>
@@ -2100,131 +2215,4 @@ index 1c85b3d09..9db8d6c16 100644
21002215
</author>
21012216
</entry>
21022217

2103-
<entry>
2104-
<title>operator== -- optional, tuple, pair, variant : C++26対応としてテンプレートパラメータ制約を整理 #1340</title>
2105-
<link href="https://cpprefjp.github.io/reference/optional/optional/op_equal.html"/>
2106-
<id>fe9f6f74664afc8705138728149c0929539552ac:reference/optional/optional/op_equal.md</id>
2107-
<updated>2024-09-17T18:25:53+09:00</updated>
2108-
2109-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/optional/optional/op_equal.md b/reference/optional/optional/op_equal.md
2110-
index b9079f2e2..c8161b828 100644
2111-
--- a/reference/optional/optional/op_equal.md
2112-
+++ b/reference/optional/optional/op_equal.md
2113-
@@ -29,8 +29,8 @@ namespace std {
2114-
`optional`オブジェクトの等値比較を行う。
2115-
2116-
2117-
-## 要件
2118-
-- (1), (3), (4) : 型`T`が`==`で比較可能であること
2119-
+## テンプレートパラメータ制約
2120-
+- (1), (3), (4) : 型`T`が`==`で比較可能であり、その戻り値型が`bool`に変換可能であること
2121-
2122-
2123-
## 戻り値
2124-
@@ -114,3 +114,5 @@ int main()
2125-
- [LWG Issue 2934. `optional&amp;lt;const T&amp;gt;` doesn&amp;#39;t compare with `T`](https://wg21.cmeerw.net/lwg/issue2934)
2126-
- [P1614R2 The Mothership has Landed](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1614r2.html)
2127-
- C++20での三方比較演算子の追加と、関連する演算子の自動導出
2128-
+- [P2944R3 Comparisons for `reference_wrapper`](https://open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2944r3.html)
2129-
+ - C++26でテンプレートパラメータ制約が整理された
2130-
&lt;/code&gt;&lt;/pre&gt;</summary>
2131-
2132-
<author>
2133-
<name>Akira Takahashi</name>
2134-
<email>[email protected]</email>
2135-
</author>
2136-
</entry>
2137-
2138-
<entry>
2139-
<title>operator== -- optional, tuple, pair, variant : C++26対応としてテンプレートパラメータ制約を整理 #1340</title>
2140-
<link href="https://cpprefjp.github.io/reference/tuple/tuple/op_equal.html"/>
2141-
<id>fe9f6f74664afc8705138728149c0929539552ac:reference/tuple/tuple/op_equal.md</id>
2142-
<updated>2024-09-17T18:25:53+09:00</updated>
2143-
2144-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/tuple/tuple/op_equal.md b/reference/tuple/tuple/op_equal.md
2145-
index 0e28dd8dd..fe541eb2c 100644
2146-
--- a/reference/tuple/tuple/op_equal.md
2147-
+++ b/reference/tuple/tuple/op_equal.md
2148-
@@ -26,7 +26,7 @@ namespace std {
2149-
2つの[`tuple`](../tuple.md)オブジェクトの等値比較を行う。また、[`tuple-like`](../tuple-like.md)なオブジェクトとの等値比較を行う。(C++23以降)
2150-
2151-
2152-
-## 要件
2153-
+## テンプレートパラメータ制約
2154-
- (1) :
2155-
- 2つの[`tuple`](../tuple.md)オブジェクトの要素数が同じであること。(具体的には`sizeof...(TTypes) == sizeof...(UTypes)`であること。)
2156-
- [`tuple`](../tuple.md)の要素`std::`[`get`](get.md)`&amp;lt;i&amp;gt;(t)`と`std::`[`get`](get.md)`&amp;lt;i&amp;gt;(u)`において、すべての要素の比較 `std::`[`get`](get.md)`&amp;lt;i&amp;gt;(t) == std::`[`get`](get.md)`&amp;lt;i&amp;gt;(u)` の比較結果が`bool`に変換可能な型(C++23 以降は[`boolean-testable`](/reference/concepts/boolean-testable.md)を満たせばよい)であること。
2157-
@@ -94,3 +94,5 @@ false
2158-
- [P1614R2 The Mothership has Landed](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1614r2.html)
2159-
- C++20での三方比較演算子の追加と、関連する演算子の自動導出
2160-
- [P2165R4 Compatibility between `tuple`, `pair` and *tuple-like* objects](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2165r4.pdf)
2161-
+- [P2944R3 Comparisons for `reference_wrapper`](https://open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2944r3.html)
2162-
+ - C++26でテンプレートパラメータ制約が整理された
2163-
&lt;/code&gt;&lt;/pre&gt;</summary>
2164-
2165-
<author>
2166-
<name>Akira Takahashi</name>
2167-
<email>[email protected]</email>
2168-
</author>
2169-
</entry>
2170-
2171-
<entry>
2172-
<title>operator== -- optional, tuple, pair, variant : C++26対応としてテンプレートパラメータ制約を整理 #1340</title>
2173-
<link href="https://cpprefjp.github.io/reference/utility/pair/op_equal.html"/>
2174-
<id>fe9f6f74664afc8705138728149c0929539552ac:reference/utility/pair/op_equal.md</id>
2175-
<updated>2024-09-17T18:25:53+09:00</updated>
2176-
2177-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/utility/pair/op_equal.md b/reference/utility/pair/op_equal.md
2178-
index c131b44a0..f4f02ba30 100644
2179-
--- a/reference/utility/pair/op_equal.md
2180-
+++ b/reference/utility/pair/op_equal.md
2181-
@@ -26,6 +26,10 @@ namespace std {
2182-
2つの`pair`の等値比較を行う
2183-
2184-
2185-
+## テンプレートパラメータ制約
2186-
+- 式`x.first == y.first`と`x.second == y.second`が妥当であり、型`decltype(x.first == y.first)`と`decltype(x.second == y.second)`が[boolean-testable](/reference/concepts/boolean-testable.md)のモデルであること
2187-
+
2188-
+
2189-
## 戻り値
2190-
```cpp
2191-
return x.first == y.first &amp;amp;&amp;amp; x.second == y.second;
2192-
@@ -65,3 +69,5 @@ false
2193-
- [N3471 Constexpr Library Additions: utilities, v3](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3471.html)
2194-
- [P1614R2 The Mothership has Landed](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1614r2.html)
2195-
- C++20での三方比較演算子の追加と、関連する演算子の自動導出
2196-
+- [P2944R3 Comparisons for `reference_wrapper`](https://open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2944r3.html)
2197-
+ - C++26でテンプレートパラメータ制約が整理された
2198-
&lt;/code&gt;&lt;/pre&gt;</summary>
2199-
2200-
<author>
2201-
<name>Akira Takahashi</name>
2202-
<email>[email protected]</email>
2203-
</author>
2204-
</entry>
2205-
2206-
<entry>
2207-
<title>operator== -- optional, tuple, pair, variant : C++26対応としてテンプレートパラメータ制約を整理 #1340</title>
2208-
<link href="https://cpprefjp.github.io/reference/variant/variant/op_equal.html"/>
2209-
<id>fe9f6f74664afc8705138728149c0929539552ac:reference/variant/variant/op_equal.md</id>
2210-
<updated>2024-09-17T18:25:53+09:00</updated>
2211-
2212-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/variant/variant/op_equal.md b/reference/variant/variant/op_equal.md
2213-
index fb29873a8..de76fd8af 100644
2214-
--- a/reference/variant/variant/op_equal.md
2215-
+++ b/reference/variant/variant/op_equal.md
2216-
@@ -59,3 +59,5 @@ int main()
2217-
2218-
## 参照
2219-
- [P0393R3 Making Variant Greater Equal](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0393r3.html)
2220-
+- [P2944R3 Comparisons for `reference_wrapper`](https://open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2944r3.html)
2221-
+ - C++26でテンプレートパラメータ制約が整理された
2222-
&lt;/code&gt;&lt;/pre&gt;</summary>
2223-
2224-
<author>
2225-
<name>Akira Takahashi</name>
2226-
<email>[email protected]</email>
2227-
</author>
2228-
</entry>
2229-
22302218
</feed>

sitemap.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@
311311

312312
<url>
313313
<loc>https://cpprefjp.github.io/reference/debugging.html</loc>
314-
<lastmod>2024-09-18T12:31:11+09:00</lastmod>
314+
<lastmod>2024-09-18T13:33:23+09:00</lastmod>
315315
<changefreq>daily</changefreq>
316316
<priority>0.8</priority>
317317
</url>

0 commit comments

Comments
 (0)