22<feed xmlns =" http://www.w3.org/2005/Atom" >
33 <title >cpprefjp - C++日本語リファレンス</title >
44 <link href =" https://cpprefjp.github.io" />
5- <updated >2024-12-21T01:46:41.643437 </updated >
6- <id >23c2449c-1474-4d0c-8d3b-c8473c22be35 </id >
5+ <updated >2024-12-21T01:57:53.058814 </updated >
6+ <id >35b330ce-8cb6-4ac5-9821-0a2aa55f8c46 </id >
77
88
9+ <entry >
10+ <title >宣言のみで使用しない変数の名前として_をサポート [P2169R4] -- fix typo</title >
11+ <link href =" https://cpprefjp.github.io/lang/cpp26/nice_placeholder_with_no_name.html" />
12+ <id >8def0da300f3370cce7815ec3476c5980576426d:lang/cpp26/nice_placeholder_with_no_name.md</id >
13+ <updated >2024-12-21T10:54:48+09:00</updated >
14+
15+ <summary type =" html" >< pre>< code> diff --git a/lang/cpp26/nice_placeholder_with_no_name.md b/lang/cpp26/nice_placeholder_with_no_name.md
16+ index cb813a6b4..8e36638dc 100644
17+ --- a/lang/cpp26/nice_placeholder_with_no_name.md
18+ +++ b/lang/cpp26/nice_placeholder_with_no_name.md
19+ @@ -20,7 +20,7 @@ std::mutex mux;
20+ std::tuple& lt;T, U, V& gt; f();
21+
22+ void f() {
23+ - std::lock_gaurd guard{mux}; // デストラクタでの自動解放だけしたいのでguard変数はとくに使わない
24+ + std::lock_guard guard{mux}; // デストラクタでの自動解放だけしたいのでguard変数はとくに使わない
25+ auto [a, b, no_use] = f(); // 構造化束縛した一部の変数は使わない
26+ }
27+ ```
28+ @@ -33,7 +33,7 @@ std::mutex mux;
29+ std::tuple& lt;T, U, V& gt; f();
30+
31+ void f() {
32+ - std::lock_gaurd _{mux}; // OK
33+ + std::lock_guard _{mux}; // OK
34+ auto [a, b, _] = f(); // OK
35+ }
36+ ```
37+ < /code>< /pre> </summary >
38+
39+ <author >
40+ <name >Akira Takahashi</name >
41+ <email >faithandbrave@gmail.com</email >
42+ </author >
43+ </entry >
44+
945 <entry >
1046 <title >宣言のみで使用しない変数の名前として_をサポート [P2169R4] -- C++26 宣言のみで使用しない変数の名前として_をサポート : ユースケースと仕様を追加</title >
1147 <link href =" https://cpprefjp.github.io/lang/cpp26/nice_placeholder_with_no_name.html" />
@@ -2063,43 +2099,4 @@ index ab03ca3a9..b82dd2b91 100644
20632099 </author >
20642100 </entry >
20652101
2066- <entry >
2067- <title >基本文字集合に@、$、`を追加[P2558R2] -- Fixed P2558R2</title >
2068- <link href =" https://cpprefjp.github.io/lang/cpp26/add_atsign_dollar_graveaccent_to_the_basic_character_set.html" />
2069- <id >a56ee8c394cf4cab93c6d6374516e96425491200:lang/cpp26/add_atsign_dollar_graveaccent_to_the_basic_character_set.md</id >
2070- <updated >2024-12-20T22:39:50+00:00</updated >
2071-
2072- <summary type =" html" >< pre>< code> diff --git a/lang/cpp26/add_atsign_dollar_graveaccent_to_the_basic_character_set.md b/lang/cpp26/add_atsign_dollar_graveaccent_to_the_basic_character_set.md
2073- index 68620668a..ab03ca3a9 100644
2074- --- a/lang/cpp26/add_atsign_dollar_graveaccent_to_the_basic_character_set.md
2075- +++ b/lang/cpp26/add_atsign_dollar_graveaccent_to_the_basic_character_set.md
2076- @@ -5,14 +5,15 @@
2077- のちのC++規格でさらに変更される場合があるため[関連項目](#relative-page)を参照してください。
2078- & lt;!-- last lang caution --& gt;
2079- ## 概要
2080- -基本文字集合に
2081- -$ (U+0024)
2082- -@ (U+0040)
2083- -` (U+0060)
2084- +基本文字集合に
2085- +$ (U+0024)
2086- +@ (U+0040)
2087- +` (U+0060)
2088- の3文字を加える。
2089- CではC23で追加され、それに合わせるようにC++でも同様の変更を提案している。
2090- これにより、これらの文字を構文として使用でき、コードの可読性や他言語絵の移植性が向上する。
2091- -```cpp
2092- +
2093- +```cpp example
2094- #include & lt;stdio.h& gt;
2095- #define STR(x) #x
2096- int main()
2097- < /code>< /pre> </summary >
2098-
2099- <author >
2100- <name >K10-K10</name >
2101- <email >keito.tottori@gmail.com</email >
2102- </author >
2103- </entry >
2104-
21052102</feed >
0 commit comments