Skip to content

Commit 812bdd0

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 7984575 commit 812bdd0

File tree

5 files changed

+9145
-9402
lines changed

5 files changed

+9145
-9402
lines changed

reference/utility/observable_checkpoint.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@
188188

189189
<p class="text-right"><small>
190190
最終更新日時(UTC):
191-
<span itemprop="datePublished" content="2026-03-27T03:03:35">
192-
2026年03月27日 03時03分35秒
191+
<span itemprop="datePublished" content="2026-03-27T06:07:12">
192+
2026年03月27日 06時07分12秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -248,8 +248,11 @@ <h2>概要</h2>
248248
<p>この場合、<code>std::observable_checkpoint()</code>によって(1)の出力<code>"Hello, "</code>が保護され、(2)の<a class="cpprefjp-defined-word" data-desc="未定義の動作。処理系は予期せぬ動作をする可能性がある。要するに動作保証対象外。undefined behavior (UB)。" href="../../implementation-compliance.html#dfn-undefined-behavior">未定義動作</a>があっても遡って消去されない。</p>
249249
<p><code>std::observable_checkpoint()</code>の明示的な呼び出しに加え、以下の操作も暗黙的に観測可能チェックポイントを設置する:</p>
250250
<ul>
251-
<li>C標準の入出力関数(<code><a href="../cstdio/printf.html">std::printf()</a></code><code><a href="../cstdio/fwrite.html">std::fwrite()</a></code>など)のうち、ファイルへのデータ書き込みを行う関数呼び出しからの復帰</li>
252-
<li><code><a href="../fstream/basic_filebuf.html">std::basic_filebuf</a></code>のオーバーフロー操作(出力シーケンスへの書き込み完了時)</li>
251+
<li>C標準の入出力関数(<code><a href="../cstdio/printf.html">std::printf()</a></code><code><a href="../cstdio/fwrite.html">std::fwrite()</a></code>など)のうち、ファイルへのデータ書き込みを行う関数呼び出しからの復帰<ul>
252+
<li>デフォルトの<code><a href="../ios/ios_base/sync_with_stdio.html">sync_with_stdio(true)</a></code>の状態では、<code><a href="../iostream/cout.html">std::cout</a></code>などの標準ストリームは<code>stdout</code>と同期しているため、これに該当する</li>
253+
</ul>
254+
</li>
255+
<li><code><a href="../fstream/basic_ofstream.html">std::ofstream</a></code>などのファイルストリーム出力時の<code><a href="../fstream/basic_filebuf.html">std::basic_filebuf</a></code>のオーバーフロー操作(バッファの内容をファイルに書き出した時点)</li>
253256
<li>Unicode出力時の<code><a href="../print/print.html">std::print()</a></code> / <code><a href="../print/println.html">std::println()</a></code>の内部出力関数<code><a href="../print/vprint_unicode.html">std::vprint_unicode()</a></code>によるターミナルへの書き込み(<code><a href="../ostream.html">&lt;ostream&gt;</a></code>版および<code><a href="../print.html">&lt;print&gt;</a></code>版)</li>
254257
</ul>
255258
<p>上記の例では<code>std::printf()</code>がC標準の入出力関数であるため、(1)の呼び出しの復帰が暗黙の観測可能チェックポイントとなり、<code>"Hello, "</code>の出力は(2)の<a class="cpprefjp-defined-word" data-desc="未定義の動作。処理系は予期せぬ動作をする可能性がある。要するに動作保証対象外。undefined behavior (UB)。" href="../../implementation-compliance.html#dfn-undefined-behavior">未定義動作</a>によって遡って消去されない。</p>

rss.xml

Lines changed: 30 additions & 290 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,38 @@
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<title>cpprefjp - C++日本語リファレンス</title>
44
<link href="https://cpprefjp.github.io" />
5-
<updated>2026-03-27T03:08:03.006591</updated>
6-
<id>bd21c7cb-e083-460f-b7db-f6f30077aa4f</id>
5+
<updated>2026-03-27T06:11:25.606127</updated>
6+
<id>8388eb2f-2bbd-4a0f-99de-bb4fda2a3715</id>
77

88

9+
<entry>
10+
<title>observable_checkpoint -- observable_checkpoint : coutやfstreamの扱いを記載 #1418</title>
11+
<link href="https://cpprefjp.github.io/reference/utility/observable_checkpoint.html"/>
12+
<id>610b4e460f08dc3b3660539fc18f31fe09716958:reference/utility/observable_checkpoint.md</id>
13+
<updated>2026-03-27T15:07:12+09:00</updated>
14+
15+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/utility/observable_checkpoint.md b/reference/utility/observable_checkpoint.md
16+
index 1e6a84b37..879bca256 100644
17+
--- a/reference/utility/observable_checkpoint.md
18+
+++ b/reference/utility/observable_checkpoint.md
19+
@@ -48,7 +48,8 @@ int main() {
20+
`std::observable_checkpoint()`の明示的な呼び出しに加え、以下の操作も暗黙的に観測可能チェックポイントを設置する:
21+
22+
- C標準の入出力関数([`std::printf()`](/reference/cstdio/printf.md)、[`std::fwrite()`](/reference/cstdio/fwrite.md)など)のうち、ファイルへのデータ書き込みを行う関数呼び出しからの復帰
23+
-- [`std::basic_filebuf`](/reference/fstream/basic_filebuf.md)のオーバーフロー操作(出力シーケンスへの書き込み完了時)
24+
+ - デフォルトの[`sync_with_stdio(true)`](/reference/ios/ios_base/sync_with_stdio.md)の状態では、[`std::cout`](/reference/iostream/cout.md)などの標準ストリームは`stdout`と同期しているため、これに該当する
25+
+- [`std::ofstream`](/reference/fstream/basic_ofstream.md)などのファイルストリーム出力時の[`std::basic_filebuf`](/reference/fstream/basic_filebuf.md)のオーバーフロー操作(バッファの内容をファイルに書き出した時点)
26+
- Unicode出力時の[`std::print()`](/reference/print/print.md) / [`std::println()`](/reference/print/println.md)の内部出力関数[`std::vprint_unicode()`](/reference/print/vprint_unicode.md)によるターミナルへの書き込み([`&amp;lt;ostream&amp;gt;`](/reference/ostream.md)版および[`&amp;lt;print&amp;gt;`](/reference/print.md)版)
27+
28+
上記の例では`std::printf()`がC標準の入出力関数であるため、(1)の呼び出しの復帰が暗黙の観測可能チェックポイントとなり、`&amp;#34;Hello, &amp;#34;`の出力は(2)の未定義動作によって遡って消去されない。
29+
&lt;/code&gt;&lt;/pre&gt;</summary>
30+
31+
<author>
32+
<name>Akira Takahashi</name>
33+
<email>faithandbrave@gmail.com</email>
34+
</author>
35+
</entry>
36+
937
<entry>
1038
<title>C++26 -- C++26対応としてobservable_checkpointを追加 #1418</title>
1139
<link href="https://cpprefjp.github.io/lang/cpp26.html"/>
@@ -2475,292 +2503,4 @@ index 1a3b13317..4d55a9da0 100644
24752503
</author>
24762504
</entry>
24772505

2478-
<entry>
2479-
<title>encoding -- text_encoding : タイトルを修正</title>
2480-
<link href="https://cpprefjp.github.io/reference/locale/locale/encoding.html"/>
2481-
<id>162ec14ada140daca5f00c819e09820ee327c45a:reference/locale/locale/encoding.md</id>
2482-
<updated>2026-03-26T13:46:13+09:00</updated>
2483-
2484-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/locale/locale/encoding.md b/reference/locale/locale/encoding.md
2485-
index f12edb3b7..477577b2d 100644
2486-
--- a/reference/locale/locale/encoding.md
2487-
+++ b/reference/locale/locale/encoding.md
2488-
@@ -1,4 +1,4 @@
2489-
-# locale::encoding
2490-
+# encoding
2491-
* locale[meta header]
2492-
* std[meta namespace]
2493-
* locale[meta class]
2494-
&lt;/code&gt;&lt;/pre&gt;</summary>
2495-
2496-
<author>
2497-
<name>Raclamusi</name>
2498-
<email>raclamusi@gmail.com</email>
2499-
</author>
2500-
</entry>
2501-
2502-
<entry>
2503-
<title>aliases -- text_encoding : タイトルを修正</title>
2504-
<link href="https://cpprefjp.github.io/reference/text_encoding/text_encoding/aliases.html"/>
2505-
<id>162ec14ada140daca5f00c819e09820ee327c45a:reference/text_encoding/text_encoding/aliases.md</id>
2506-
<updated>2026-03-26T13:46:13+09:00</updated>
2507-
2508-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/text_encoding/text_encoding/aliases.md b/reference/text_encoding/text_encoding/aliases.md
2509-
index 34e060191..e37780c54 100644
2510-
--- a/reference/text_encoding/text_encoding/aliases.md
2511-
+++ b/reference/text_encoding/text_encoding/aliases.md
2512-
@@ -1,4 +1,4 @@
2513-
-# text_encoding::aliases
2514-
+# aliases
2515-
* text_encoding[meta header]
2516-
* std[meta namespace]
2517-
* text_encoding[meta class]
2518-
&lt;/code&gt;&lt;/pre&gt;</summary>
2519-
2520-
<author>
2521-
<name>Raclamusi</name>
2522-
<email>raclamusi@gmail.com</email>
2523-
</author>
2524-
</entry>
2525-
2526-
<entry>
2527-
<title>aliases_view -- text_encoding : タイトルを修正</title>
2528-
<link href="https://cpprefjp.github.io/reference/text_encoding/text_encoding/aliases_view.html"/>
2529-
<id>162ec14ada140daca5f00c819e09820ee327c45a:reference/text_encoding/text_encoding/aliases_view.md</id>
2530-
<updated>2026-03-26T13:46:13+09:00</updated>
2531-
2532-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/text_encoding/text_encoding/aliases_view.md b/reference/text_encoding/text_encoding/aliases_view.md
2533-
index 6efcf2939..be11c0bd2 100644
2534-
--- a/reference/text_encoding/text_encoding/aliases_view.md
2535-
+++ b/reference/text_encoding/text_encoding/aliases_view.md
2536-
@@ -1,4 +1,4 @@
2537-
-# text_encoding::aliases_view
2538-
+# aliases_view
2539-
* text_encoding[meta header]
2540-
* std[meta namespace]
2541-
* text_encoding[meta class]
2542-
&lt;/code&gt;&lt;/pre&gt;</summary>
2543-
2544-
<author>
2545-
<name>Raclamusi</name>
2546-
<email>raclamusi@gmail.com</email>
2547-
</author>
2548-
</entry>
2549-
2550-
<entry>
2551-
<title>comp-name -- text_encoding : タイトルを修正</title>
2552-
<link href="https://cpprefjp.github.io/reference/text_encoding/text_encoding/comp-name.html"/>
2553-
<id>162ec14ada140daca5f00c819e09820ee327c45a:reference/text_encoding/text_encoding/comp-name.md</id>
2554-
<updated>2026-03-26T13:46:13+09:00</updated>
2555-
2556-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/text_encoding/text_encoding/comp-name.md b/reference/text_encoding/text_encoding/comp-name.md
2557-
index 4b9a9305a..1a3b13317 100644
2558-
--- a/reference/text_encoding/text_encoding/comp-name.md
2559-
+++ b/reference/text_encoding/text_encoding/comp-name.md
2560-
@@ -1,4 +1,4 @@
2561-
-# text_encoding::comp-name
2562-
+# comp-name
2563-
* text_encoding[meta header]
2564-
* std[meta namespace]
2565-
* text_encoding[meta class]
2566-
&lt;/code&gt;&lt;/pre&gt;</summary>
2567-
2568-
<author>
2569-
<name>Raclamusi</name>
2570-
<email>raclamusi@gmail.com</email>
2571-
</author>
2572-
</entry>
2573-
2574-
<entry>
2575-
<title>environment -- text_encoding : タイトルを修正</title>
2576-
<link href="https://cpprefjp.github.io/reference/text_encoding/text_encoding/environment.html"/>
2577-
<id>162ec14ada140daca5f00c819e09820ee327c45a:reference/text_encoding/text_encoding/environment.md</id>
2578-
<updated>2026-03-26T13:46:13+09:00</updated>
2579-
2580-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/text_encoding/text_encoding/environment.md b/reference/text_encoding/text_encoding/environment.md
2581-
index 972fdc146..7d3bb3409 100644
2582-
--- a/reference/text_encoding/text_encoding/environment.md
2583-
+++ b/reference/text_encoding/text_encoding/environment.md
2584-
@@ -1,4 +1,4 @@
2585-
-# text_encoding::environment
2586-
+# environment
2587-
* text_encoding[meta header]
2588-
* std[meta namespace]
2589-
* text_encoding[meta class]
2590-
&lt;/code&gt;&lt;/pre&gt;</summary>
2591-
2592-
<author>
2593-
<name>Raclamusi</name>
2594-
<email>raclamusi@gmail.com</email>
2595-
</author>
2596-
</entry>
2597-
2598-
<entry>
2599-
<title>environment_is -- text_encoding : タイトルを修正</title>
2600-
<link href="https://cpprefjp.github.io/reference/text_encoding/text_encoding/environment_is.html"/>
2601-
<id>162ec14ada140daca5f00c819e09820ee327c45a:reference/text_encoding/text_encoding/environment_is.md</id>
2602-
<updated>2026-03-26T13:46:13+09:00</updated>
2603-
2604-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/text_encoding/text_encoding/environment_is.md b/reference/text_encoding/text_encoding/environment_is.md
2605-
index 2d1a9a99d..b2f71f5b4 100644
2606-
--- a/reference/text_encoding/text_encoding/environment_is.md
2607-
+++ b/reference/text_encoding/text_encoding/environment_is.md
2608-
@@ -1,4 +1,4 @@
2609-
-# text_encoding::environment_is
2610-
+# environment_is
2611-
* text_encoding[meta header]
2612-
* std[meta namespace]
2613-
* text_encoding[meta class]
2614-
&lt;/code&gt;&lt;/pre&gt;</summary>
2615-
2616-
<author>
2617-
<name>Raclamusi</name>
2618-
<email>raclamusi@gmail.com</email>
2619-
</author>
2620-
</entry>
2621-
2622-
<entry>
2623-
<title>id -- text_encoding : タイトルを修正</title>
2624-
<link href="https://cpprefjp.github.io/reference/text_encoding/text_encoding/id.html"/>
2625-
<id>162ec14ada140daca5f00c819e09820ee327c45a:reference/text_encoding/text_encoding/id.md</id>
2626-
<updated>2026-03-26T13:46:13+09:00</updated>
2627-
2628-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/text_encoding/text_encoding/id.md b/reference/text_encoding/text_encoding/id.md
2629-
index 46d59bdb1..ab89c8015 100644
2630-
--- a/reference/text_encoding/text_encoding/id.md
2631-
+++ b/reference/text_encoding/text_encoding/id.md
2632-
@@ -1,4 +1,4 @@
2633-
-# text_encoding::id
2634-
+# id
2635-
* text_encoding[meta header]
2636-
* std[meta namespace]
2637-
* text_encoding[meta class]
2638-
&lt;/code&gt;&lt;/pre&gt;</summary>
2639-
2640-
<author>
2641-
<name>Raclamusi</name>
2642-
<email>raclamusi@gmail.com</email>
2643-
</author>
2644-
</entry>
2645-
2646-
<entry>
2647-
<title>literal -- text_encoding : タイトルを修正</title>
2648-
<link href="https://cpprefjp.github.io/reference/text_encoding/text_encoding/literal.html"/>
2649-
<id>162ec14ada140daca5f00c819e09820ee327c45a:reference/text_encoding/text_encoding/literal.md</id>
2650-
<updated>2026-03-26T13:46:13+09:00</updated>
2651-
2652-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/text_encoding/text_encoding/literal.md b/reference/text_encoding/text_encoding/literal.md
2653-
index bb6d2c348..3cbe56d15 100644
2654-
--- a/reference/text_encoding/text_encoding/literal.md
2655-
+++ b/reference/text_encoding/text_encoding/literal.md
2656-
@@ -1,4 +1,4 @@
2657-
-# text_encoding::literal
2658-
+# literal
2659-
* text_encoding[meta header]
2660-
* std[meta namespace]
2661-
* text_encoding[meta class]
2662-
&lt;/code&gt;&lt;/pre&gt;</summary>
2663-
2664-
<author>
2665-
<name>Raclamusi</name>
2666-
<email>raclamusi@gmail.com</email>
2667-
</author>
2668-
</entry>
2669-
2670-
<entry>
2671-
<title>mib -- text_encoding : タイトルを修正</title>
2672-
<link href="https://cpprefjp.github.io/reference/text_encoding/text_encoding/mib.html"/>
2673-
<id>162ec14ada140daca5f00c819e09820ee327c45a:reference/text_encoding/text_encoding/mib.md</id>
2674-
<updated>2026-03-26T13:46:13+09:00</updated>
2675-
2676-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/text_encoding/text_encoding/mib.md b/reference/text_encoding/text_encoding/mib.md
2677-
index 488be8850..ec5d05825 100644
2678-
--- a/reference/text_encoding/text_encoding/mib.md
2679-
+++ b/reference/text_encoding/text_encoding/mib.md
2680-
@@ -1,4 +1,4 @@
2681-
-# text_encoding::mib
2682-
+# mib
2683-
* text_encoding[meta header]
2684-
* std[meta namespace]
2685-
* text_encoding[meta class]
2686-
&lt;/code&gt;&lt;/pre&gt;</summary>
2687-
2688-
<author>
2689-
<name>Raclamusi</name>
2690-
<email>raclamusi@gmail.com</email>
2691-
</author>
2692-
</entry>
2693-
2694-
<entry>
2695-
<title>name -- text_encoding : タイトルを修正</title>
2696-
<link href="https://cpprefjp.github.io/reference/text_encoding/text_encoding/name.html"/>
2697-
<id>162ec14ada140daca5f00c819e09820ee327c45a:reference/text_encoding/text_encoding/name.md</id>
2698-
<updated>2026-03-26T13:46:13+09:00</updated>
2699-
2700-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/text_encoding/text_encoding/name.md b/reference/text_encoding/text_encoding/name.md
2701-
index b07e52b7b..a3497b46a 100644
2702-
--- a/reference/text_encoding/text_encoding/name.md
2703-
+++ b/reference/text_encoding/text_encoding/name.md
2704-
@@ -1,4 +1,4 @@
2705-
-# text_encoding::name
2706-
+# name
2707-
* text_encoding[meta header]
2708-
* std[meta namespace]
2709-
* text_encoding[meta class]
2710-
&lt;/code&gt;&lt;/pre&gt;</summary>
2711-
2712-
<author>
2713-
<name>Raclamusi</name>
2714-
<email>raclamusi@gmail.com</email>
2715-
</author>
2716-
</entry>
2717-
2718-
<entry>
2719-
<title>コンストラクタ -- text_encoding : タイトルを修正</title>
2720-
<link href="https://cpprefjp.github.io/reference/text_encoding/text_encoding/op_constructor.html"/>
2721-
<id>162ec14ada140daca5f00c819e09820ee327c45a:reference/text_encoding/text_encoding/op_constructor.md</id>
2722-
<updated>2026-03-26T13:46:13+09:00</updated>
2723-
2724-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/text_encoding/text_encoding/op_constructor.md b/reference/text_encoding/text_encoding/op_constructor.md
2725-
index 308ebd541..93a024d78 100644
2726-
--- a/reference/text_encoding/text_encoding/op_constructor.md
2727-
+++ b/reference/text_encoding/text_encoding/op_constructor.md
2728-
@@ -1,4 +1,4 @@
2729-
-# text_encoding::text_encoding
2730-
+# コンストラクタ
2731-
* text_encoding[meta header]
2732-
* std[meta namespace]
2733-
* text_encoding[meta class]
2734-
&lt;/code&gt;&lt;/pre&gt;</summary>
2735-
2736-
<author>
2737-
<name>Raclamusi</name>
2738-
<email>raclamusi@gmail.com</email>
2739-
</author>
2740-
</entry>
2741-
2742-
<entry>
2743-
<title>operator== -- text_encoding : タイトルを修正</title>
2744-
<link href="https://cpprefjp.github.io/reference/text_encoding/text_encoding/op_equal.html"/>
2745-
<id>162ec14ada140daca5f00c819e09820ee327c45a:reference/text_encoding/text_encoding/op_equal.md</id>
2746-
<updated>2026-03-26T13:46:13+09:00</updated>
2747-
2748-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/text_encoding/text_encoding/op_equal.md b/reference/text_encoding/text_encoding/op_equal.md
2749-
index 27b86d301..0033d9406 100644
2750-
--- a/reference/text_encoding/text_encoding/op_equal.md
2751-
+++ b/reference/text_encoding/text_encoding/op_equal.md
2752-
@@ -1,4 +1,4 @@
2753-
-# text_encoding::operator==
2754-
+# operator==
2755-
* text_encoding[meta header]
2756-
* std[meta namespace]
2757-
* text_encoding[meta class]
2758-
&lt;/code&gt;&lt;/pre&gt;</summary>
2759-
2760-
<author>
2761-
<name>Raclamusi</name>
2762-
<email>raclamusi@gmail.com</email>
2763-
</author>
2764-
</entry>
2765-
27662506
</feed>

0 commit comments

Comments
 (0)