Skip to content

Commit 0e69574

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 03eea41 commit 0e69574

File tree

3 files changed

+44
-177
lines changed

3 files changed

+44
-177
lines changed

reference/thread/jthread/op_constructor.html

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@
200200

201201
<p class="text-right"><small>
202202
最終更新日時(UTC):
203-
<span itemprop="datePublished" content="2024-06-11T13:45:38">
204-
2024年06月11日 13時45分38秒
203+
<span itemprop="datePublished" content="2024-12-16T01:51:53">
204+
2024年12月16日 01時51分53秒
205205
</span>
206206
<br/>
207207
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -284,18 +284,17 @@ <h2>効果</h2>
284284
<li>
285285
<p>この呼び出しでの戻り値は無視される。この関数呼び出しが例外を送出する場合、呼び出し元スレッドで<code><a href="../../exception/terminate.html">std::terminate</a></code>が呼び出される</p>
286286
</li>
287-
<li>(3) :</li>
288287
</ul>
289288
</li>
290289
</ul>
291290
<h2>同期</h2>
292291
<ul>
293-
<li>(2) : コンストラクタ呼び出しの完了は、<code>f</code>のコピーの呼び出し開始と同期する</li>
292+
<li>(2) : コンストラクタ呼び出しの完了は、<code>f</code>のコピーの呼び出し開始と同期する
293+
新しいスレッドを生成し、<code><a href="../../concepts/Invoke.html">INVOKE</a>(DECAY_COPY(<a href="../../utility/forward.html">std::forward</a>&lt;F&gt;(f)), DECAY_COPY(<a href="../../utility/forward.html">std::forward</a>&lt;Args&gt;(args))...)</code>を実行する。ただし<code>DECAY_COPY</code>は同コンストラクタを呼び出したスレッド上にて評価される。また<code>f</code>のコピーの戻り値は無視される。<ul>
294+
<li><code>DECAY_COPY(x)</code><code>template &lt;class T&gt; typename std::decay&lt;T&gt;::type decay_copy(T&amp;&amp; v) { return <a href="../../utility/forward.html">std::forward</a>&lt;T&gt;(v); }</code> と定義される。おおよそ、<code>x</code>が配列型なら先頭要素へのポインタ、<code>x</code>が関数型ならその関数ポインタ、<code>x</code>がコピーコンストラクト可能な型なら<code>x</code>からコピーされたオブジェクト、<code>x</code>がムーブコンストラクト可能な型なら<code>x</code>からムーブされたオブジェクトとなる。</li>
295+
</ul>
296+
</li>
294297
</ul>
295-
<p>新しいスレッドを生成し、<code><a href="../../concepts/Invoke.html">INVOKE</a>(DECAY_COPY(<a href="../../utility/forward.html">std::forward</a>&lt;F&gt;(f)), DECAY_COPY(<a href="../../utility/forward.html">std::forward</a>&lt;Args&gt;(args))...)</code>を実行する。ただし<code>DECAY_COPY</code>は同コンストラクタを呼び出したスレッド上にて評価される。また<code>f</code>のコピーの戻り値は無視される。</p>
296-
<p><div class="codehilite"><pre><span></span><code><span class="o">-</span> <span class="ss">`DECAY_COPY(x)`</span><span class="err"></span> <span class="ss">`template &lt;class T&gt; typename std::decay&lt;T&gt;::type decay_copy(T&amp;&amp; v) { return`</span> <span class="p">[</span><span class="ss">`std::forward`</span><span class="p">](</span><span class="o">/</span><span class="n">reference</span><span class="o">/</span><span class="n">utility</span><span class="o">/</span><span class="n">forward</span><span class="p">.</span><span class="n">md</span><span class="p">)</span><span class="ss">`&lt;T&gt;(v); }`</span> <span class="err">と定義される。おおよそ、</span><span class="ss">`x`</span><span class="err">が配列型なら先頭要素へのポインタ、</span><span class="ss">`x`</span><span class="err">が関数型ならその関数ポインタ、</span><span class="ss">`x`</span><span class="err">がコピーコンストラクト可能な型なら</span><span class="ss">`x`</span><span class="err">からコピーされたオブジェクト、</span><span class="ss">`x`</span><span class="err">がムーブコンストラクト可能な型なら</span><span class="ss">`x`</span><span class="err">からムーブされたオブジェクトとなる。</span>
297-
</code></pre></div>
298-
</p>
299298
<h2>同期</h2>
300299
<ul>
301300
<li>(2) : 同コンストラクタの呼び出し完了は、fのコピーの呼び出し開始と<strong>同期する</strong>。つまり、「コンストラクタ呼び出し側スレッドT0でのコンストラクタ呼び出し完了」は、「新しいスレッド<code>T1</code>上での<code>f</code>のコピーの呼び出し開始」よりも<strong>前に発生する</strong></li>

rss.xml

Lines changed: 36 additions & 168 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,44 @@
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-16T01:51:07.061611</updated>
6-
<id>c11e615f-31f9-44a8-8723-1d66c1286eac</id>
5+
<updated>2024-12-16T01:54:56.350331</updated>
6+
<id>d8c1fae4-ee1c-45c6-a8e9-6992bc4d995d</id>
77

88

9+
<entry>
10+
<title>コンストラクタ -- jthread::コンストラクタ : 表示崩れを修正</title>
11+
<link href="https://cpprefjp.github.io/reference/thread/jthread/op_constructor.html"/>
12+
<id>8cf3afda9d84d4b11909769986c644ae3095976c:reference/thread/jthread/op_constructor.md</id>
13+
<updated>2024-12-16T10:51:53+09:00</updated>
14+
15+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/thread/jthread/op_constructor.md b/reference/thread/jthread/op_constructor.md
16+
index e56789e7a..d6d6cee7a 100644
17+
--- a/reference/thread/jthread/op_constructor.md
18+
+++ b/reference/thread/jthread/op_constructor.md
19+
@@ -60,14 +60,11 @@ jthread(jthread&amp;amp;&amp;amp;) noexcept; // (4) C++20
20+
* std::forward[link /reference/utility/forward.md]
21+
22+
- この呼び出しでの戻り値は無視される。この関数呼び出しが例外を送出する場合、呼び出し元スレッドで[`std::terminate`](/reference/exception/terminate.md)が呼び出される
23+
-- (3) :
24+
25+
26+
## 同期
27+
- (2) : コンストラクタ呼び出しの完了は、`f`のコピーの呼び出し開始と同期する
28+
-
29+
-
30+
-新しいスレッドを生成し、[`INVOKE`](/reference/concepts/Invoke.md)`(DECAY_COPY(`[`std::forward`](/reference/utility/forward.md)`&amp;lt;F&amp;gt;(f)), DECAY_COPY(`[`std::forward`](/reference/utility/forward.md)`&amp;lt;Args&amp;gt;(args))...)`を実行する。ただし`DECAY_COPY`は同コンストラクタを呼び出したスレッド上にて評価される。また`f`のコピーの戻り値は無視される。
31+
+ 新しいスレッドを生成し、[`INVOKE`](/reference/concepts/Invoke.md)`(DECAY_COPY(`[`std::forward`](/reference/utility/forward.md)`&amp;lt;F&amp;gt;(f)), DECAY_COPY(`[`std::forward`](/reference/utility/forward.md)`&amp;lt;Args&amp;gt;(args))...)`を実行する。ただし`DECAY_COPY`は同コンストラクタを呼び出したスレッド上にて評価される。また`f`のコピーの戻り値は無視される。
32+
- `DECAY_COPY(x)`は `template &amp;lt;class T&amp;gt; typename std::decay&amp;lt;T&amp;gt;::type decay_copy(T&amp;amp;&amp;amp; v) { return` [`std::forward`](/reference/utility/forward.md)`&amp;lt;T&amp;gt;(v); }` と定義される。おおよそ、`x`が配列型なら先頭要素へのポインタ、`x`が関数型ならその関数ポインタ、`x`がコピーコンストラクト可能な型なら`x`からコピーされたオブジェクト、`x`がムーブコンストラクト可能な型なら`x`からムーブされたオブジェクトとなる。
33+
34+
35+
&lt;/code&gt;&lt;/pre&gt;</summary>
36+
37+
<author>
38+
<name>Akira Takahashi</name>
39+
<email>[email protected]</email>
40+
</author>
41+
</entry>
42+
943
<entry>
1044
<title>cpprefjpでのMarkdown記法の制限と拡張 -- Markdown拡張: 「箇条書きの前に空行が必要」「コードブロックのあとに空行が必要」の制限がなくなったので削除 #1362</title>
1145
<link href="https://cpprefjp.github.io/start_editing/markdown_cpprefjp.html"/>
@@ -163,170 +197,4 @@ index c8b9ef2e2..f57b71e1c 100644
163197
</author>
164198
</entry>
165199

166-
<entry>
167-
<title>型の文脈でtypenameの省略を許可 [P0634R3] -- 誤ったコードブロック後のコード修飾を修正 (v2)</title>
168-
<link href="https://cpprefjp.github.io/lang/cpp20/down_with_typename.html"/>
169-
<id>587d612b99f621e8cb0777e689ee0247d055d750:lang/cpp20/down_with_typename.md</id>
170-
<updated>2024-12-11T11:53:37+09:00</updated>
171-
172-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/lang/cpp20/down_with_typename.md b/lang/cpp20/down_with_typename.md
173-
index 90eb921e4..edb703848 100644
174-
--- a/lang/cpp20/down_with_typename.md
175-
+++ b/lang/cpp20/down_with_typename.md
176-
@@ -52,7 +52,7 @@ template&amp;lt;typename T&amp;gt; void f() {
177-
void g(T::X); // エラー: void型の変数宣言
178-
}
179-
```
180-
-- P0634R3[link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0634r3.html]
181-
+* P0634R3[link http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0634r3.html]
182-
183-
## 例
184-
```cpp example
185-
&lt;/code&gt;&lt;/pre&gt;</summary>
186-
187-
<author>
188-
<name>Koichi Murase</name>
189-
<email>[email protected]</email>
190-
</author>
191-
</entry>
192-
193-
<entry>
194-
<title>formatter -- 誤ったコードブロック後のコード修飾を修正 (v2)</title>
195-
<link href="https://cpprefjp.github.io/reference/chrono/day/formatter.html"/>
196-
<id>587d612b99f621e8cb0777e689ee0247d055d750:reference/chrono/day/formatter.md</id>
197-
<updated>2024-12-11T11:53:37+09:00</updated>
198-
199-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/chrono/day/formatter.md b/reference/chrono/day/formatter.md
200-
index 7dfaba5d4..9e5852b68 100644
201-
--- a/reference/chrono/day/formatter.md
202-
+++ b/reference/chrono/day/formatter.md
203-
@@ -32,7 +32,7 @@ int main()
204-
std::cout &amp;lt;&amp;lt; std::format(&amp;#34;{:%e}&amp;#34;, chrono::day{3}) &amp;lt;&amp;lt; std::endl;
205-
}
206-
```
207-
-- std::format[link /reference/chrono/format.md]
208-
+* std::format[link /reference/chrono/format.md]
209-
210-
### 出力
211-
```
212-
&lt;/code&gt;&lt;/pre&gt;</summary>
213-
214-
<author>
215-
<name>Koichi Murase</name>
216-
<email>[email protected]</email>
217-
</author>
218-
</entry>
219-
220-
<entry>
221-
<title>formatter -- 誤ったコードブロック後のコード修飾を修正 (v2)</title>
222-
<link href="https://cpprefjp.github.io/reference/chrono/duration/formatter.html"/>
223-
<id>587d612b99f621e8cb0777e689ee0247d055d750:reference/chrono/duration/formatter.md</id>
224-
<updated>2024-12-11T11:53:37+09:00</updated>
225-
226-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/chrono/duration/formatter.md b/reference/chrono/duration/formatter.md
227-
index 5c5fcf1f2..4e2fd8c0a 100644
228-
--- a/reference/chrono/duration/formatter.md
229-
+++ b/reference/chrono/duration/formatter.md
230-
@@ -59,7 +59,7 @@ int main()
231-
std::cout &amp;lt;&amp;lt; std::format(&amp;#34;AM/PM : {:%p %I:00}&amp;#34;, chrono::hours{15}) &amp;lt;&amp;lt; std::endl;
232-
}
233-
```
234-
-- std::format[link /reference/chrono/format.md]
235-
+* std::format[link /reference/chrono/format.md]
236-
237-
### 出力
238-
```
239-
&lt;/code&gt;&lt;/pre&gt;</summary>
240-
241-
<author>
242-
<name>Koichi Murase</name>
243-
<email>[email protected]</email>
244-
</author>
245-
</entry>
246-
247-
<entry>
248-
<title>formatter -- 誤ったコードブロック後のコード修飾を修正 (v2)</title>
249-
<link href="https://cpprefjp.github.io/reference/chrono/year/formatter.html"/>
250-
<id>587d612b99f621e8cb0777e689ee0247d055d750:reference/chrono/year/formatter.md</id>
251-
<updated>2024-12-11T11:53:37+09:00</updated>
252-
253-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/chrono/year/formatter.md b/reference/chrono/year/formatter.md
254-
index 56a21bc95..8ef3af181 100644
255-
--- a/reference/chrono/year/formatter.md
256-
+++ b/reference/chrono/year/formatter.md
257-
@@ -50,7 +50,7 @@ int main()
258-
std::cout &amp;lt;&amp;lt; std::format(std::locale(&amp;#34;ja_JP.UTF-8&amp;#34;), &amp;#34;{:%EY}&amp;#34;, chrono::year{2020}) &amp;lt;&amp;lt; std::endl;
259-
}
260-
```
261-
-- std::format[link /reference/chrono/format.md]
262-
+* std::format[link /reference/chrono/format.md]
263-
264-
### 出力
265-
```
266-
&lt;/code&gt;&lt;/pre&gt;</summary>
267-
268-
<author>
269-
<name>Koichi Murase</name>
270-
<email>[email protected]</email>
271-
</author>
272-
</entry>
273-
274-
<entry>
275-
<title>operator-- -- 誤ったコードブロック後のコード修飾を修正 (v2)</title>
276-
<link href="https://cpprefjp.github.io/reference/ranges/filter_view/iterator/op_decrement.html"/>
277-
<id>587d612b99f621e8cb0777e689ee0247d055d750:reference/ranges/filter_view/iterator/op_decrement.md</id>
278-
<updated>2024-12-11T11:53:37+09:00</updated>
279-
280-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/ranges/filter_view/iterator/op_decrement.md b/reference/ranges/filter_view/iterator/op_decrement.md
281-
index 79450e66d..6d8d25535 100644
282-
--- a/reference/ranges/filter_view/iterator/op_decrement.md
283-
+++ b/reference/ranges/filter_view/iterator/op_decrement.md
284-
@@ -24,7 +24,7 @@ do
285-
while (!invoke(*parent_-&amp;gt;pred_, *current_));
286-
return *this;
287-
```
288-
-- invoke[link /reference/functional/invoke.md]
289-
+* invoke[link /reference/functional/invoke.md]
290-
291-
と等しい。
292-
293-
&lt;/code&gt;&lt;/pre&gt;</summary>
294-
295-
<author>
296-
<name>Koichi Murase</name>
297-
<email>[email protected]</email>
298-
</author>
299-
</entry>
300-
301-
<entry>
302-
<title>operator++ -- 誤ったコードブロック後のコード修飾を修正 (v2)</title>
303-
<link href="https://cpprefjp.github.io/reference/ranges/filter_view/iterator/op_increment.html"/>
304-
<id>587d612b99f621e8cb0777e689ee0247d055d750:reference/ranges/filter_view/iterator/op_increment.md</id>
305-
<updated>2024-12-11T11:53:37+09:00</updated>
306-
307-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/ranges/filter_view/iterator/op_increment.md b/reference/ranges/filter_view/iterator/op_increment.md
308-
index 28de17ad0..f7985e01d 100644
309-
--- a/reference/ranges/filter_view/iterator/op_increment.md
310-
+++ b/reference/ranges/filter_view/iterator/op_increment.md
311-
@@ -26,9 +26,9 @@ current_ = ranges::find_if(
312-
ref(*parent_-&amp;gt;pred_));
313-
return *this;
314-
```
315-
-- ranges::find_if[link /reference/algorithm/ranges_find_if.md]
316-
-- ranges::end[link /reference/ranges/end.md]
317-
-- ref[link /reference/functional/ref.md]
318-
+* ranges::find_if[link /reference/algorithm/ranges_find_if.md]
319-
+* ranges::end[link /reference/ranges/end.md]
320-
+* ref[link /reference/functional/ref.md]
321-
322-
と等しい。
323-
324-
&lt;/code&gt;&lt;/pre&gt;</summary>
325-
326-
<author>
327-
<name>Koichi Murase</name>
328-
<email>[email protected]</email>
329-
</author>
330-
</entry>
331-
332200
</feed>

sitemap.xml

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

2081520815
<url>
2081620816
<loc>https://cpprefjp.github.io/reference/thread/jthread/op_constructor.html</loc>
20817-
<lastmod>2024-12-16T10:43:31+09:00</lastmod>
20817+
<lastmod>2024-12-16T10:51:53+09:00</lastmod>
2081820818
<changefreq>daily</changefreq>
2081920819
<priority>0.6</priority>
2082020820
</url>

0 commit comments

Comments
 (0)