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" >< pre>< code> 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+ < /code>< /pre> </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): " ダングリング" の定義追加、および訳語の統一 (#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" >< pre>< code> 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- < /code>< /pre> </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): " ダングリング" の定義追加、および訳語の統一 (#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" >< pre>< code> 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& lt;std::string_view& gt; であった場合、
3236- // 変数 vec は std::vector& lt;std::string_view& 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; e : vec) {
3242- std::cout & lt;& lt; e & lt;& lt; std::endl;
3243- < /code>< /pre> </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): " ダングリング" の定義追加、および訳語の統一 (#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" >< pre>< code> 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- < /code>< /pre> </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): " ダングリング" の定義追加、および訳語の統一 (#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" >< pre>< code> 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& lt;charT, traits& gt;
3289-
3290-
3291- ## 注意
3292- -本関数は使い方を誤ると、ぶら下がり参照が発生し得る。
3293- +本関数は使い方を誤ると、ダングリング参照が発生し得る。
3294- ```cpp example
3295- #include & lt;print& gt;
3296- #include & lt;string& gt;
3297- @@ -42,7 +42,7 @@ int main() {
3298- std::println(& #34;{}& #34;, std::string(3, & #39;A& #39;).subview());
3299-
3300- // NG!
3301- - std::string_view d = std::string(3, & #39;A& #39;).subview(); // ぶら下がり参照発生
3302- + std::string_view d = std::string(3, & #39;A& #39;).subview(); // ダングリング参照発生
3303- std::println(& #34;{}& #34;, d); // 不定動作
3304- }
3305- ```
3306- < /code>< /pre> </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): " ダングリング" の定義追加、および訳語の統一 (#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" >< pre>< code> 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- < /code>< /pre> </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): " ダングリング" の定義追加、および訳語の統一 (#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" >< pre>< code> 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- < /code>< /pre> </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): " ダングリング" の定義追加、および訳語の統一 (#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" >< pre>< code> 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- < /code>< /pre> </summary >
3387-
3388- <author >
3389- <name >teruyamato0731</name >
3390- <email >77840326+teruyamato0731@users.noreply.github.com</email >
3391- </author >
3392- </entry >
3393-
33943220</feed >
0 commit comments