Skip to content

Commit f53a07d

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 20fedad commit f53a07d

File tree

3 files changed

+28
-203
lines changed

3 files changed

+28
-203
lines changed

lang/cpp26/allow_attaching_main_to_the_global_module.html

Lines changed: 2 additions & 3 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-04-02T02:09:00">
192-
2026年04月02日 02時09分00秒
191+
<span itemprop="datePublished" content="2026-04-06T00:53:12">
192+
2026年04月06日 00時53分12秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -275,7 +275,6 @@ <h2><a href="#relative-page" id="relative-page">関連項目</a></h2>
275275
<h2>参照</h2>
276276
<ul>
277277
<li><a href="https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3618r0.html" target="_blank">P3618R0 Allow attaching main to the global module</a></li>
278-
<li><a href="https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3422r1.html" target="_blank">P3422R1 Fixing Modules for Test</a></li>
279278
</ul></div>
280279

281280
</div>

rss.xml

Lines changed: 25 additions & 199 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,33 @@
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<title>cpprefjp - C++日本語リファレンス</title>
44
<link href="https://cpprefjp.github.io" />
5-
<updated>2026-04-05T15:04:16.869806</updated>
6-
<id>125fe615-0197-41ca-a705-22b295c72c91</id>
5+
<updated>2026-04-06T00:57:32.626437</updated>
6+
<id>fae43454-f680-4d81-bea1-ea469268d741</id>
77

88

9+
<entry>
10+
<title>main関数をグローバルモジュールに関連付けることを許可 [P3618R0] -- 関係ない参照文書を削除</title>
11+
<link href="https://cpprefjp.github.io/lang/cpp26/allow_attaching_main_to_the_global_module.html"/>
12+
<id>683ebcdeaef3c9e6e79b85bf0176929017739a97:lang/cpp26/allow_attaching_main_to_the_global_module.md</id>
13+
<updated>2026-04-06T09:53:12+09:00</updated>
14+
15+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/lang/cpp26/allow_attaching_main_to_the_global_module.md b/lang/cpp26/allow_attaching_main_to_the_global_module.md
16+
index 72fc86986..8c1664e1d 100644
17+
--- a/lang/cpp26/allow_attaching_main_to_the_global_module.md
18+
+++ b/lang/cpp26/allow_attaching_main_to_the_global_module.md
19+
@@ -80,4 +80,3 @@ P3422R1では、モジュール内で定義された`main()`関数を暗黙的
20+
21+
## 参照
22+
- [P3618R0 Allow attaching main to the global module](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3618r0.html)
23+
-- [P3422R1 Fixing Modules for Test](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3422r1.html)
24+
&lt;/code&gt;&lt;/pre&gt;</summary>
25+
26+
<author>
27+
<name>Akira Takahashi</name>
28+
<email>faithandbrave@gmail.com</email>
29+
</author>
30+
</entry>
31+
932
<entry>
1033
<title>abs -- feat: abs関連ページの記述改善と関連項目の追加 (#1601)</title>
1134
<link href="https://cpprefjp.github.io/reference/cmath/abs.html"/>
@@ -3194,201 +3217,4 @@ index 7d18146e6..1c3e77d7f 100644
31943217
</author>
31953218
</entry>
31963219

3197-
<entry>
3198-
<title>function_ref -- feat(GLOBAL_DEFINED_WORDS): &#34;ダングリング&#34;の定義追加、および訳語の統一 (#1599)</title>
3199-
<link href="https://cpprefjp.github.io/reference/functional/function_ref.html"/>
3200-
<id>36dc97276c8853fe25544f1ef5d41934ace9185f:reference/functional/function_ref.md</id>
3201-
<updated>2026-04-02T14:29:58+09:00</updated>
3202-
3203-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/functional/function_ref.md b/reference/functional/function_ref.md
3204-
index c1f86340b..76f7db38d 100644
3205-
--- a/reference/functional/function_ref.md
3206-
+++ b/reference/functional/function_ref.md
3207-
@@ -35,7 +35,7 @@ namespace std {
3208-
- `operator bool`を提供しない。
3209-
- メンバ関数・メンバ変数を参照する場合は、[`std::constant_arg`](/reference/utility/constant_arg_t.md)タグを利用する。
3210-
- 対象オブジェクトの束縛タイミングは、構築時または呼び出し時のいずれもサポートする。
3211-
-- ダングリング(dangling)参照を避けるため、左辺値(lvalue)のみを取り扱う。
3212-
+- ダングリング参照を避けるため、左辺値(lvalue)のみを取り扱う。
3213-
3214-
3215-
## メンバ関数
3216-
&lt;/code&gt;&lt;/pre&gt;</summary>
3217-
3218-
<author>
3219-
<name>teruyamato0731</name>
3220-
<email>77840326+teruyamato0731@users.noreply.github.com</email>
3221-
</author>
3222-
</entry>
3223-
3224-
<entry>
3225-
<title>generator -- feat(GLOBAL_DEFINED_WORDS): &#34;ダングリング&#34;の定義追加、および訳語の統一 (#1599)</title>
3226-
<link href="https://cpprefjp.github.io/reference/generator/generator.html"/>
3227-
<id>36dc97276c8853fe25544f1ef5d41934ace9185f:reference/generator/generator.md</id>
3228-
<updated>2026-04-02T14:29:58+09:00</updated>
3229-
3230-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/generator/generator.md b/reference/generator/generator.md
3231-
index 4ba98f5de..f95c3713e 100644
3232-
--- a/reference/generator/generator.md
3233-
+++ b/reference/generator/generator.md
3234-
@@ -318,7 +318,7 @@ int main()
3235-
// もし fizzbuzz() 戻り値型が std::generator&amp;lt;std::string_view&amp;gt; であった場合、
3236-
// 変数 vec は std::vector&amp;lt;std::string_view&amp;gt; 型となる。このときコルーチン内部実装の
3237-
// std::to_string() の戻り値 std::string オブジェクトはco_yield式末尾で寿命が切れるため、
3238-
- // 各要素 vec[i] に格納される std::string_view はダングリング(dangling)状態になってしまう。
3239-
+ // 各要素 vec[i] に格納される std::string_view はダングリング状態になってしまう。
3240-
3241-
for (const auto&amp;amp; e : vec) {
3242-
std::cout &amp;lt;&amp;lt; e &amp;lt;&amp;lt; std::endl;
3243-
&lt;/code&gt;&lt;/pre&gt;</summary>
3244-
3245-
<author>
3246-
<name>teruyamato0731</name>
3247-
<email>77840326+teruyamato0731@users.noreply.github.com</email>
3248-
</author>
3249-
</entry>
3250-
3251-
<entry>
3252-
<title>operator* -- feat(GLOBAL_DEFINED_WORDS): &#34;ダングリング&#34;の定義追加、および訳語の統一 (#1599)</title>
3253-
<link href="https://cpprefjp.github.io/reference/iterator/reverse_iterator/op_deref.html"/>
3254-
<id>36dc97276c8853fe25544f1ef5d41934ace9185f:reference/iterator/reverse_iterator/op_deref.md</id>
3255-
<updated>2026-04-02T14:29:58+09:00</updated>
3256-
3257-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/iterator/reverse_iterator/op_deref.md b/reference/iterator/reverse_iterator/op_deref.md
3258-
index 434f83bc7..60075bbda 100644
3259-
--- a/reference/iterator/reverse_iterator/op_deref.md
3260-
+++ b/reference/iterator/reverse_iterator/op_deref.md
3261-
@@ -22,7 +22,7 @@ deref_tmp = current;
3262-
return *deref_tmp;
3263-
```
3264-
3265-
-※`deref_tmp`は、ぶら下がり参照を避けるために関数内のローカル変数ではなく、メンバ変数として保持される。
3266-
+※`deref_tmp`は、ダングリング参照を避けるために関数内のローカル変数ではなく、メンバ変数として保持される。
3267-
3268-
3269-
- C++14
3270-
&lt;/code&gt;&lt;/pre&gt;</summary>
3271-
3272-
<author>
3273-
<name>teruyamato0731</name>
3274-
<email>77840326+teruyamato0731@users.noreply.github.com</email>
3275-
</author>
3276-
</entry>
3277-
3278-
<entry>
3279-
<title>subview -- feat(GLOBAL_DEFINED_WORDS): &#34;ダングリング&#34;の定義追加、および訳語の統一 (#1599)</title>
3280-
<link href="https://cpprefjp.github.io/reference/string/basic_string/subview.html"/>
3281-
<id>36dc97276c8853fe25544f1ef5d41934ace9185f:reference/string/basic_string/subview.md</id>
3282-
<updated>2026-04-02T14:29:58+09:00</updated>
3283-
3284-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/string/basic_string/subview.md b/reference/string/basic_string/subview.md
3285-
index 364409e34..8af696964 100644
3286-
--- a/reference/string/basic_string/subview.md
3287-
+++ b/reference/string/basic_string/subview.md
3288-
@@ -26,7 +26,7 @@ constexpr basic_string_view&amp;lt;charT, traits&amp;gt;
3289-
3290-
3291-
## 注意
3292-
-本関数は使い方を誤ると、ぶら下がり参照が発生し得る。
3293-
+本関数は使い方を誤ると、ダングリング参照が発生し得る。
3294-
```cpp example
3295-
#include &amp;lt;print&amp;gt;
3296-
#include &amp;lt;string&amp;gt;
3297-
@@ -42,7 +42,7 @@ int main() {
3298-
std::println(&amp;#34;{}&amp;#34;, std::string(3, &amp;#39;A&amp;#39;).subview());
3299-
3300-
// NG!
3301-
- std::string_view d = std::string(3, &amp;#39;A&amp;#39;).subview(); // ぶら下がり参照発生
3302-
+ std::string_view d = std::string(3, &amp;#39;A&amp;#39;).subview(); // ダングリング参照発生
3303-
std::println(&amp;#34;{}&amp;#34;, d); // 不定動作
3304-
}
3305-
```
3306-
&lt;/code&gt;&lt;/pre&gt;</summary>
3307-
3308-
<author>
3309-
<name>teruyamato0731</name>
3310-
<email>77840326+teruyamato0731@users.noreply.github.com</email>
3311-
</author>
3312-
</entry>
3313-
3314-
<entry>
3315-
<title>コンストラクタ -- feat(GLOBAL_DEFINED_WORDS): &#34;ダングリング&#34;の定義追加、および訳語の統一 (#1599)</title>
3316-
<link href="https://cpprefjp.github.io/reference/valarray/gslice_array/op_constructor.html"/>
3317-
<id>36dc97276c8853fe25544f1ef5d41934ace9185f:reference/valarray/gslice_array/op_constructor.md</id>
3318-
<updated>2026-04-02T14:29:58+09:00</updated>
3319-
3320-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/valarray/gslice_array/op_constructor.md b/reference/valarray/gslice_array/op_constructor.md
3321-
index fe0e9de29..41abbecba 100644
3322-
--- a/reference/valarray/gslice_array/op_constructor.md
3323-
+++ b/reference/valarray/gslice_array/op_constructor.md
3324-
@@ -70,7 +70,7 @@ int main()
3325-
3326-
3327-
### 備考
3328-
-- GCC 4.9.0時点のlibstdc++は、(2)のオーバーロードにおいて、ぶら下がり参照の問題が発生する実装のバグがある([Bug 62119](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62119))
3329-
+- GCC 4.9.0時点のlibstdc++は、(2)のオーバーロードにおいて、ダングリング参照の問題が発生する実装のバグがある([Bug 62119](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62119))
3330-
3331-
3332-
## 参照
3333-
&lt;/code&gt;&lt;/pre&gt;</summary>
3334-
3335-
<author>
3336-
<name>teruyamato0731</name>
3337-
<email>77840326+teruyamato0731@users.noreply.github.com</email>
3338-
</author>
3339-
</entry>
3340-
3341-
<entry>
3342-
<title>operator[] -- feat(GLOBAL_DEFINED_WORDS): &#34;ダングリング&#34;の定義追加、および訳語の統一 (#1599)</title>
3343-
<link href="https://cpprefjp.github.io/reference/valarray/valarray/op_at.html"/>
3344-
<id>36dc97276c8853fe25544f1ef5d41934ace9185f:reference/valarray/valarray/op_at.md</id>
3345-
<updated>2026-04-02T14:29:58+09:00</updated>
3346-
3347-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/valarray/valarray/op_at.md b/reference/valarray/valarray/op_at.md
3348-
index f28b2951b..119ee2b35 100644
3349-
--- a/reference/valarray/valarray/op_at.md
3350-
+++ b/reference/valarray/valarray/op_at.md
3351-
@@ -270,7 +270,7 @@ int main()
3352-
```
3353-
3354-
### 備考
3355-
-- GCC 4.8.2時点のlibstdc++において、(8)と(10)のオーバーロードにおいて、一時オブジェクトのマスク配列を渡すと、ぶら下がり参照が発生する問題がある([#Bug 63314](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63314), [mask_array behavior in libstdc++](http://stackoverflow.com/questions/25918764/mask-array-behavior-in-libstdc))
3356-
+- GCC 4.8.2時点のlibstdc++において、(8)と(10)のオーバーロードにおいて、一時オブジェクトのマスク配列を渡すと、ダングリング参照が発生する問題がある([#Bug 63314](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63314), [mask_array behavior in libstdc++](http://stackoverflow.com/questions/25918764/mask-array-behavior-in-libstdc))
3357-
3358-
3359-
## 参照
3360-
&lt;/code&gt;&lt;/pre&gt;</summary>
3361-
3362-
<author>
3363-
<name>teruyamato0731</name>
3364-
<email>77840326+teruyamato0731@users.noreply.github.com</email>
3365-
</author>
3366-
</entry>
3367-
3368-
<entry>
3369-
<title>スタイル -- feat(GLOBAL_DEFINED_WORDS): &#34;ダングリング&#34;の定義追加、および訳語の統一 (#1599)</title>
3370-
<link href="https://cpprefjp.github.io/working_style.html"/>
3371-
<id>36dc97276c8853fe25544f1ef5d41934ace9185f:working_style.md</id>
3372-
<updated>2026-04-02T14:29:58+09:00</updated>
3373-
3374-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/working_style.md b/working_style.md
3375-
index 2265d4392..bb37c58ad 100644
3376-
--- a/working_style.md
3377-
+++ b/working_style.md
3378-
@@ -81,6 +81,7 @@ C++11以降対応については対応バージョンを明記します。バー
3379-
| const iterator | 読み取り専用イテレータ |
3380-
| const reverse iterator | 読み取り専用逆イテレータ |
3381-
| covariant | 共変的 |
3382-
+| dangling | ダングリング |
3383-
| data member | メンバ変数 (ユーザー視点ではデータメンバより一般的のため) |
3384-
| dereference | 間接参照 |
3385-
| dereferenceable | 間接参照可能 |
3386-
&lt;/code&gt;&lt;/pre&gt;</summary>
3387-
3388-
<author>
3389-
<name>teruyamato0731</name>
3390-
<email>77840326+teruyamato0731@users.noreply.github.com</email>
3391-
</author>
3392-
</entry>
3393-
33943220
</feed>

sitemap.xml

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

18871887
<url>
18881888
<loc>https://cpprefjp.github.io/lang/cpp26/allow_attaching_main_to_the_global_module.html</loc>
1889-
<lastmod>2026-04-02T11:09:00+09:00</lastmod>
1889+
<lastmod>2026-04-06T09:53:12+09:00</lastmod>
18901890
<changefreq>daily</changefreq>
18911891
<priority>0.7</priority>
18921892
</url>

0 commit comments

Comments
 (0)