|
2 | 2 | <feed xmlns="http://www.w3.org/2005/Atom">
|
3 | 3 | <title>cpprefjp - C++日本語リファレンス</title>
|
4 | 4 | <link href="https://cpprefjp.github.io" />
|
5 |
| - <updated>2024-12-17T14:44:25.002240</updated> |
6 |
| - <id>81716fa6-cb8e-42c9-ab50-87744d149f54</id> |
| 5 | + <updated>2024-12-18T05:19:36.717043</updated> |
| 6 | + <id>acdb137e-8f7f-4170-be6f-5da61dd8c3c5</id> |
7 | 7 |
|
8 | 8 |
|
| 9 | + <entry> |
| 10 | + <title>basic_istringstream -- Merge pull request #1370 from rotarymars/master</title> |
| 11 | + <link href="https://cpprefjp.github.io/reference/sstream/basic_istringstream.html"/> |
| 12 | + <id>f702e61c13ad056112757ce7c82e6a7e4614e189:reference/sstream/basic_istringstream.md</id> |
| 13 | + <updated>2024-12-18T14:16:35+09:00</updated> |
| 14 | + |
| 15 | + <summary type="html"><pre><code>diff --git a/reference/sstream/basic_istringstream.md b/reference/sstream/basic_istringstream.md |
| 16 | +index 82c8acc69..4b8565091 100644 |
| 17 | +--- a/reference/sstream/basic_istringstream.md |
| 18 | ++++ b/reference/sstream/basic_istringstream.md |
| 19 | +@@ -53,11 +53,24 @@ namespace std { |
| 20 | + | `allocator_type` | テンプレート仮引数`Allocator` | | |
| 21 | + |
| 22 | + ## 例 |
| 23 | +-```cpp |
| 24 | ++```cpp example |
| 25 | ++#include &lt;iostream&gt; |
| 26 | ++#include &lt;sstream&gt; |
| 27 | ++int main() { |
| 28 | ++ std::string text = &#34;ABCDEFG&#34;; |
| 29 | ++ std::istringstream stream(text); |
| 30 | ++ char c; |
| 31 | ++ while (stream &gt;&gt; c) { |
| 32 | ++ std::cout&lt;&lt;c&lt;&lt;&#39; &#39;; |
| 33 | ++ } |
| 34 | ++ std::cout&lt;&lt;std::endl; |
| 35 | ++} |
| 36 | + ``` |
| 37 | +- |
| 38 | ++* std::istringstream[color ff0000] |
| 39 | + ### 出力 |
| 40 | + ``` |
| 41 | ++A B C D E F G |
| 42 | ++ |
| 43 | + ``` |
| 44 | + |
| 45 | + ## 参照 |
| 46 | +</code></pre></summary> |
| 47 | + |
| 48 | + <author> |
| 49 | + <name>Akira Takahashi</name> |
| 50 | + |
| 51 | + </author> |
| 52 | + </entry> |
| 53 | + |
| 54 | + <entry> |
| 55 | + <title>basic_istringstream -- new sample code for istringstream</title> |
| 56 | + <link href="https://cpprefjp.github.io/reference/sstream/basic_istringstream.html"/> |
| 57 | + <id>dbd4b9d90511bfe6df1bf0cdda1798338fc044d1:reference/sstream/basic_istringstream.md</id> |
| 58 | + <updated>2024-12-18T13:33:04+09:00</updated> |
| 59 | + |
| 60 | + <summary type="html"><pre><code>diff --git a/reference/sstream/basic_istringstream.md b/reference/sstream/basic_istringstream.md |
| 61 | +index 82c8acc69..4b8565091 100644 |
| 62 | +--- a/reference/sstream/basic_istringstream.md |
| 63 | ++++ b/reference/sstream/basic_istringstream.md |
| 64 | +@@ -53,11 +53,24 @@ namespace std { |
| 65 | + | `allocator_type` | テンプレート仮引数`Allocator` | | |
| 66 | + |
| 67 | + ## 例 |
| 68 | +-```cpp |
| 69 | ++```cpp example |
| 70 | ++#include &lt;iostream&gt; |
| 71 | ++#include &lt;sstream&gt; |
| 72 | ++int main() { |
| 73 | ++ std::string text = &#34;ABCDEFG&#34;; |
| 74 | ++ std::istringstream stream(text); |
| 75 | ++ char c; |
| 76 | ++ while (stream &gt;&gt; c) { |
| 77 | ++ std::cout&lt;&lt;c&lt;&lt;&#39; &#39;; |
| 78 | ++ } |
| 79 | ++ std::cout&lt;&lt;std::endl; |
| 80 | ++} |
| 81 | + ``` |
| 82 | +- |
| 83 | ++* std::istringstream[color ff0000] |
| 84 | + ### 出力 |
| 85 | + ``` |
| 86 | ++A B C D E F G |
| 87 | ++ |
| 88 | + ``` |
| 89 | + |
| 90 | + ## 参照 |
| 91 | +</code></pre></summary> |
| 92 | + |
| 93 | + <author> |
| 94 | + <name>rotarymars</name> |
| 95 | + |
| 96 | + </author> |
| 97 | + </entry> |
| 98 | + |
9 | 99 | <entry>
|
10 | 100 | <title>gps_clock -- Merge pull request #1369 from cpprefjp/refine-tai-gps-clock</title>
|
11 | 101 | <link href="https://cpprefjp.github.io/reference/chrono/gps_clock.html"/>
|
@@ -471,94 +561,6 @@ index 79b80c7ac..4f118a77d 100644
|
471 | 561 | +
|
472 | 562 | ## 参照
|
473 | 563 | - [P2795R5 Erroneous behaviour for uninitialized reads](https://open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2795r5.html)
|
474 |
| -</code></pre></summary> |
475 |
| - |
476 |
| - <author> |
477 |
| - <name>Akira Takahashi</name> |
478 |
| - |
479 |
| - </author> |
480 |
| - </entry> |
481 |
| - |
482 |
| - <entry> |
483 |
| - <title>jthread -- jthread: コード修飾ミスを修正</title> |
484 |
| - <link href="https://cpprefjp.github.io/reference/thread/jthread.html"/> |
485 |
| - <id>073c4bc6ac4734a56d512f81872f87fa12538db3:reference/thread/jthread.md</id> |
486 |
| - <updated>2024-12-16T10:59:12+09:00</updated> |
487 |
| - |
488 |
| - <summary type="html"><pre><code>diff --git a/reference/thread/jthread.md b/reference/thread/jthread.md |
489 |
| -index 9ba75dc41..bd9afa005 100644 |
490 |
| ---- a/reference/thread/jthread.md |
491 |
| -+++ b/reference/thread/jthread.md |
492 |
| -@@ -114,7 +114,7 @@ int main() |
493 |
| - ``` |
494 |
| - * std::uint64_t[link /reference/cstdint/uint64_t.md] |
495 |
| - * std::stop_token[link /reference/stop_token/stop_token.md] |
496 |
| --* token.stop_requested()[link /reference/stop_token/stop_token/stop_requested.md] |
497 |
| -+* stoken.stop_requested()[link /reference/stop_token/stop_token/stop_requested.md] |
498 |
| - * std::this_thread::sleep_for[link /reference/thread/this_thread/sleep_for.md] |
499 |
| - * t1.request_stop()[link jthread/request_stop.md] |
500 |
| - |
501 |
| -</code></pre></summary> |
502 |
| - |
503 |
| - <author> |
504 |
| - <name>Akira Takahashi</name> |
505 |
| - |
506 |
| - </author> |
507 |
| - </entry> |
508 |
| - |
509 |
| - <entry> |
510 |
| - <title>コンストラクタ -- jthread: コード修飾ミスを修正</title> |
511 |
| - <link href="https://cpprefjp.github.io/reference/thread/jthread/op_constructor.html"/> |
512 |
| - <id>073c4bc6ac4734a56d512f81872f87fa12538db3:reference/thread/jthread/op_constructor.md</id> |
513 |
| - <updated>2024-12-16T10:59:12+09:00</updated> |
514 |
| - |
515 |
| - <summary type="html"><pre><code>diff --git a/reference/thread/jthread/op_constructor.md b/reference/thread/jthread/op_constructor.md |
516 |
| -index d6d6cee7a..f8f6b19ef 100644 |
517 |
| ---- a/reference/thread/jthread/op_constructor.md |
518 |
| -+++ b/reference/thread/jthread/op_constructor.md |
519 |
| -@@ -145,7 +145,7 @@ int main() |
520 |
| - ``` |
521 |
| - * std::uint64_t[link /reference/cstdint/uint64_t.md] |
522 |
| - * std::stop_token[link /reference/stop_token/stop_token.md] |
523 |
| --* token.stop_requested()[link /reference/stop_token/stop_token/stop_requested.md] |
524 |
| -+* stoken.stop_requested()[link /reference/stop_token/stop_token/stop_requested.md] |
525 |
| - * std::this_thread::sleep_for[link /reference/thread/this_thread/sleep_for.md] |
526 |
| - * t1.request_stop()[link request_stop.md] |
527 |
| - |
528 |
| -</code></pre></summary> |
529 |
| - |
530 |
| - <author> |
531 |
| - <name>Akira Takahashi</name> |
532 |
| - |
533 |
| - </author> |
534 |
| - </entry> |
535 |
| - |
536 |
| - <entry> |
537 |
| - <title>コンストラクタ -- jthread::コンストラクタ : 表示崩れを修正</title> |
538 |
| - <link href="https://cpprefjp.github.io/reference/thread/jthread/op_constructor.html"/> |
539 |
| - <id>8cf3afda9d84d4b11909769986c644ae3095976c:reference/thread/jthread/op_constructor.md</id> |
540 |
| - <updated>2024-12-16T10:51:53+09:00</updated> |
541 |
| - |
542 |
| - <summary type="html"><pre><code>diff --git a/reference/thread/jthread/op_constructor.md b/reference/thread/jthread/op_constructor.md |
543 |
| -index e56789e7a..d6d6cee7a 100644 |
544 |
| ---- a/reference/thread/jthread/op_constructor.md |
545 |
| -+++ b/reference/thread/jthread/op_constructor.md |
546 |
| -@@ -60,14 +60,11 @@ jthread(jthread&amp;&amp;) noexcept; // (4) C++20 |
547 |
| - * std::forward[link /reference/utility/forward.md] |
548 |
| - |
549 |
| - - この呼び出しでの戻り値は無視される。この関数呼び出しが例外を送出する場合、呼び出し元スレッドで[`std::terminate`](/reference/exception/terminate.md)が呼び出される |
550 |
| --- (3) : |
551 |
| - |
552 |
| - |
553 |
| - ## 同期 |
554 |
| - - (2) : コンストラクタ呼び出しの完了は、`f`のコピーの呼び出し開始と同期する |
555 |
| -- |
556 |
| -- |
557 |
| --新しいスレッドを生成し、[`INVOKE`](/reference/concepts/Invoke.md)`(DECAY_COPY(`[`std::forward`](/reference/utility/forward.md)`&lt;F&gt;(f)), DECAY_COPY(`[`std::forward`](/reference/utility/forward.md)`&lt;Args&gt;(args))...)`を実行する。ただし`DECAY_COPY`は同コンストラクタを呼び出したスレッド上にて評価される。また`f`のコピーの戻り値は無視される。 |
558 |
| -+ 新しいスレッドを生成し、[`INVOKE`](/reference/concepts/Invoke.md)`(DECAY_COPY(`[`std::forward`](/reference/utility/forward.md)`&lt;F&gt;(f)), DECAY_COPY(`[`std::forward`](/reference/utility/forward.md)`&lt;Args&gt;(args))...)`を実行する。ただし`DECAY_COPY`は同コンストラクタを呼び出したスレッド上にて評価される。また`f`のコピーの戻り値は無視される。 |
559 |
| - - `DECAY_COPY(x)`は `template &lt;class T&gt; typename std::decay&lt;T&gt;::type decay_copy(T&amp;&amp; v) { return` [`std::forward`](/reference/utility/forward.md)`&lt;T&gt;(v); }` と定義される。おおよそ、`x`が配列型なら先頭要素へのポインタ、`x`が関数型ならその関数ポインタ、`x`がコピーコンストラクト可能な型なら`x`からコピーされたオブジェクト、`x`がムーブコンストラクト可能な型なら`x`からムーブされたオブジェクトとなる。 |
560 |
| - |
561 |
| - |
562 | 564 | </code></pre></summary>
|
563 | 565 |
|
564 | 566 | <author>
|
|
0 commit comments