Skip to content

Commit 21076d4

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent aabca81 commit 21076d4

File tree

3 files changed

+112
-98
lines changed

3 files changed

+112
-98
lines changed

reference/sstream/basic_istringstream.html

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
</head>
7070
<body>
71-
<header data-kunai-mdinfo="{&#34;meta&#34;: {&#34;header&#34;: [&#34;sstream&#34;], &#34;namespace&#34;: [&#34;std&#34;], &#34;id-type&#34;: [&#34;class template&#34;]}, &#34;sources&#34;: [], &#34;page_id&#34;: [&#34;reference&#34;, &#34;sstream&#34;, &#34;basic_istringstream&#34;]}">
71+
<header data-kunai-mdinfo="{&#34;meta&#34;: {&#34;header&#34;: [&#34;sstream&#34;], &#34;namespace&#34;: [&#34;std&#34;], &#34;id-type&#34;: [&#34;class template&#34;]}, &#34;sources&#34;: [{&#34;id&#34;: &#34;8342a7089460611f6db14696cb3eee336744407b&#34;, &#34;source&#34;: &#34;#include &lt;iostream&gt;\n#include &lt;sstream&gt;\nint main() {\n std::string text = \&#34;ABCDEFG\&#34;;\n std::istringstream stream(text);\n char c;\n while (stream &gt;&gt; c) {\n std::cout&lt;&lt;c&lt;&lt;&#39; &#39;;\n }\n std::cout&lt;&lt;std::endl;\n}\n&#34;}], &#34;page_id&#34;: [&#34;reference&#34;, &#34;sstream&#34;, &#34;basic_istringstream&#34;]}">
7272
<nav class="navbar navbar-default" role="navigation">
7373
<div class="container-fluid">
7474
<div class="navbar-header">
@@ -188,12 +188,12 @@
188188

189189
<p class="text-right"><small>
190190
最終更新日時(UTC):
191-
<span itemprop="datePublished" content="2023-07-04T17:32:53">
192-
2023年07月04日 17時32分53秒
191+
<span itemprop="datePublished" content="2024-12-18T04:33:04">
192+
2024年12月18日 04時33分04秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
196-
<span itemprop="name">Shunsuke Shimizu</span>
196+
<span itemprop="name">rotarymars</span>
197197
</span>
198198
が更新
199199
</small></p>
@@ -332,11 +332,23 @@ <h2>メンバ型</h2>
332332
</tbody>
333333
</table>
334334
<h2></h2>
335-
<p><div class="codehilite"><pre><span></span><code>
335+
<p><div class="yata" id="8342a7089460611f6db14696cb3eee336744407b"><div class="codehilite"><pre><span></span><code><span class="cp">#include</span> <span class="cpf"><a href="../iostream.html">&lt;iostream&gt;</a></span><span class="cp"></span>
336+
<span class="cp">#include</span> <span class="cpf"><a href="../sstream.html">&lt;sstream&gt;</a></span><span class="cp"></span>
337+
<span class="kt">int</span> <span class="nf">main</span><span class="p">()</span> <span class="p">{</span>
338+
<span class="n"><a href="../string/basic_string.html">std::string</a></span> <span class="n">text</span> <span class="o">=</span> <span class="s">"ABCDEFG"</span><span class="p">;</span>
339+
<span class="n"><span style="color:#ff0000">std::istringstream</span></span> <span class="n">stream</span><span class="p">(</span><span class="n">text</span><span class="p">);</span>
340+
<span class="kt">char</span> <span class="n">c</span><span class="p">;</span>
341+
<span class="k">while</span> <span class="p">(</span><span class="n">stream</span> <span class="o">&gt;&gt;</span> <span class="n">c</span><span class="p">)</span> <span class="p">{</span>
342+
<span class="n"><a href="../iostream/cout.html">std::cout</a></span><span class="o">&lt;&lt;</span><span class="n">c</span><span class="o">&lt;&lt;</span><span class="sc">' '</span><span class="p">;</span>
343+
<span class="p">}</span>
344+
<span class="n"><a href="../iostream/cout.html">std::cout</a></span><span class="o">&lt;&lt;</span><span class="n"><a href="../ostream/endl.html">std::endl</a></span><span class="p">;</span>
345+
<span class="p">}</span>
336346
</code></pre></div>
337-
</p>
347+
</div></p>
338348
<h3>出力</h3>
339-
<p><pre><code></code></pre></p>
349+
<p><pre><code>A B C D E F G
350+
351+
</code></pre></p>
340352
<h2>参照</h2>
341353
<ul>
342354
<li><a href="https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0408r7.pdf" target="_blank">P0408R7 Efficient Access to <code>basic_stringbuf</code>’s Buffer</a></li>

rss.xml

Lines changed: 92 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,100 @@
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-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>
77

88

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">&lt;pre&gt;&lt;code&gt;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 &amp;lt;iostream&amp;gt;
26+
+#include &amp;lt;sstream&amp;gt;
27+
+int main() {
28+
+ std::string text = &amp;#34;ABCDEFG&amp;#34;;
29+
+ std::istringstream stream(text);
30+
+ char c;
31+
+ while (stream &amp;gt;&amp;gt; c) {
32+
+ std::cout&amp;lt;&amp;lt;c&amp;lt;&amp;lt;&amp;#39; &amp;#39;;
33+
+ }
34+
+ std::cout&amp;lt;&amp;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+
&lt;/code&gt;&lt;/pre&gt;</summary>
47+
48+
<author>
49+
<name>Akira Takahashi</name>
50+
<email>[email protected]</email>
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">&lt;pre&gt;&lt;code&gt;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 &amp;lt;iostream&amp;gt;
71+
+#include &amp;lt;sstream&amp;gt;
72+
+int main() {
73+
+ std::string text = &amp;#34;ABCDEFG&amp;#34;;
74+
+ std::istringstream stream(text);
75+
+ char c;
76+
+ while (stream &amp;gt;&amp;gt; c) {
77+
+ std::cout&amp;lt;&amp;lt;c&amp;lt;&amp;lt;&amp;#39; &amp;#39;;
78+
+ }
79+
+ std::cout&amp;lt;&amp;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+
&lt;/code&gt;&lt;/pre&gt;</summary>
92+
93+
<author>
94+
<name>rotarymars</name>
95+
<email>[email protected]</email>
96+
</author>
97+
</entry>
98+
999
<entry>
10100
<title>gps_clock -- Merge pull request #1369 from cpprefjp/refine-tai-gps-clock</title>
11101
<link href="https://cpprefjp.github.io/reference/chrono/gps_clock.html"/>
@@ -471,94 +561,6 @@ index 79b80c7ac..4f118a77d 100644
471561
+
472562
## 参照
473563
- [P2795R5 Erroneous behaviour for uninitialized reads](https://open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2795r5.html)
474-
&lt;/code&gt;&lt;/pre&gt;</summary>
475-
476-
<author>
477-
<name>Akira Takahashi</name>
478-
<email>[email protected]</email>
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">&lt;pre&gt;&lt;code&gt;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-
&lt;/code&gt;&lt;/pre&gt;</summary>
502-
503-
<author>
504-
<name>Akira Takahashi</name>
505-
<email>[email protected]</email>
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">&lt;pre&gt;&lt;code&gt;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-
&lt;/code&gt;&lt;/pre&gt;</summary>
529-
530-
<author>
531-
<name>Akira Takahashi</name>
532-
<email>[email protected]</email>
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">&lt;pre&gt;&lt;code&gt;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;&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)`&amp;lt;F&amp;gt;(f)), DECAY_COPY(`[`std::forward`](/reference/utility/forward.md)`&amp;lt;Args&amp;gt;(args))...)`を実行する。ただし`DECAY_COPY`は同コンストラクタを呼び出したスレッド上にて評価される。また`f`のコピーの戻り値は無視される。
558-
+ 新しいスレッドを生成し、[`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`のコピーの戻り値は無視される。
559-
- `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`からムーブされたオブジェクトとなる。
560-
561-
562564
&lt;/code&gt;&lt;/pre&gt;</summary>
563565

564566
<author>

sitemap.xml

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

3417134171
<url>
3417234172
<loc>https://cpprefjp.github.io/reference/sstream/basic_istringstream.html</loc>
34173-
<lastmod>2024-12-16T10:43:31+09:00</lastmod>
34173+
<lastmod>2024-12-18T14:16:35+09:00</lastmod>
3417434174
<changefreq>daily</changefreq>
3417534175
<priority>0.7</priority>
3417634176
</url>

0 commit comments

Comments
 (0)