Skip to content

Commit b46a899

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent e0f4f29 commit b46a899

File tree

2 files changed

+3
-39
lines changed

2 files changed

+3
-39
lines changed

reference/mutex/lock_guard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ <h3>基本的な使い方</h3>
290290
<span class="n"><a href="../random/uniform_int_distribution.html">std::uniform_int_distribution</a></span><span class="o">&lt;</span><span class="kt">int</span><span class="o">&gt;</span> <span class="n">dist</span><span class="p">{</span><span class="mi">1</span><span class="p">,</span> <span class="mi">10</span><span class="p">};</span>
291291

292292
<span class="kt">int</span> <span class="n">sleep_ms</span> <span class="o">=</span> <span class="n">dist</span><span class="p">(</span><span class="n">engine</span><span class="p">);</span>
293-
<span class="n">std</span><span class="o">::</span><span class="n">this_thread</span><span class="o">::</span><span class="n">sleep_for</span><span class="p">(</span><span class="n"><a href="../chrono/duration_aliases.html">std::chrono::milliseconds</a></span><span class="p">{</span><span class="n">sleep_ms</span><span class="p">});</span>
293+
<span class="n"><a href="../thread/this_thread/sleep_for.html">std::this_thread::sleep_for</a></span><span class="p">(</span><span class="n"><a href="../chrono/duration_aliases.html">std::chrono::milliseconds</a></span><span class="p">{</span><span class="n">sleep_ms</span><span class="p">});</span>
294294
<span class="p">}</span>
295295

296296
<span class="kt">int</span> <span class="nf">main</span><span class="p">()</span>

rss.xml

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
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-21T04:07:35.701117</updated>
6-
<id>de998b6d-b81a-4016-867e-9e6d53966ea7</id>
5+
<updated>2024-12-21T04:37:11.113273</updated>
6+
<id>d80befa0-b0fd-4f1e-856a-b7a59583f6fc</id>
77

88

99
<entry>
@@ -286,40 +286,4 @@ index e8a75a55a..6a2d9e0d6 100644
286286
</author>
287287
</entry>
288288

289-
<entry>
290-
<title>宣言のみで使用しない変数の名前として_をサポート [P2169R4] -- fix typo</title>
291-
<link href="https://cpprefjp.github.io/lang/cpp26/nice_placeholder_with_no_name.html"/>
292-
<id>8def0da300f3370cce7815ec3476c5980576426d:lang/cpp26/nice_placeholder_with_no_name.md</id>
293-
<updated>2024-12-21T10:54:48+09:00</updated>
294-
295-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/lang/cpp26/nice_placeholder_with_no_name.md b/lang/cpp26/nice_placeholder_with_no_name.md
296-
index cb813a6b4..8e36638dc 100644
297-
--- a/lang/cpp26/nice_placeholder_with_no_name.md
298-
+++ b/lang/cpp26/nice_placeholder_with_no_name.md
299-
@@ -20,7 +20,7 @@ std::mutex mux;
300-
std::tuple&amp;lt;T, U, V&amp;gt; f();
301-
302-
void f() {
303-
- std::lock_gaurd guard{mux}; // デストラクタでの自動解放だけしたいのでguard変数はとくに使わない
304-
+ std::lock_guard guard{mux}; // デストラクタでの自動解放だけしたいのでguard変数はとくに使わない
305-
auto [a, b, no_use] = f(); // 構造化束縛した一部の変数は使わない
306-
}
307-
```
308-
@@ -33,7 +33,7 @@ std::mutex mux;
309-
std::tuple&amp;lt;T, U, V&amp;gt; f();
310-
311-
void f() {
312-
- std::lock_gaurd _{mux}; // OK
313-
+ std::lock_guard _{mux}; // OK
314-
auto [a, b, _] = f(); // OK
315-
}
316-
```
317-
&lt;/code&gt;&lt;/pre&gt;</summary>
318-
319-
<author>
320-
<name>Akira Takahashi</name>
321-
<email>[email protected]</email>
322-
</author>
323-
</entry>
324-
325289
</feed>

0 commit comments

Comments
 (0)