Skip to content

Commit 97ccb3c

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent a83199f commit 97ccb3c

File tree

4 files changed

+68
-40
lines changed

4 files changed

+68
-40
lines changed

reference/filesystem/directory_iterator.html

Lines changed: 5 additions & 5 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;filesystem&#34;], &#34;namespace&#34;: [&#34;std::filesystem&#34;], &#34;id-type&#34;: [&#34;class&#34;], &#34;cpp&#34;: [&#34;cpp17&#34;]}, &#34;sources&#34;: [{&#34;id&#34;: &#34;643a75512595c5f1b79b22663707813fb9e7de19&#34;, &#34;source&#34;: &#34;#include &lt;iostream&gt;\n#include &lt;filesystem&gt;\n#include &lt;fstream&gt;\n\nnamespace fs = std::filesystem;\n\nint main()\n{\n fs::create_directory(\&#34;dir_a\&#34;);\n std::ofstream{\&#34;dir_a/a.txt\&#34;};\n\n fs::create_directory(\&#34;dir_a/dir_b\&#34;);\n std::ofstream{\&#34;dir_a/dir_b/b.txt\&#34;};\n\n // dir_a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u76f4\u4e0b\u306b\u542b\u307e\u308c\u308b\u5168\u30d5\u30a1\u30a4\u30eb\u3092\u51fa\u529b\n for (const fs::directory_entry&amp; x : fs::directory_iterator(\&#34;dir_a\&#34;)) {\n std::cout &lt;&lt; x.path() &lt;&lt; std::endl;\n }\n}\n&#34;}], &#34;page_id&#34;: [&#34;reference&#34;, &#34;filesystem&#34;, &#34;directory_iterator&#34;]}">
71+
<header data-kunai-mdinfo="{&#34;meta&#34;: {&#34;header&#34;: [&#34;filesystem&#34;], &#34;namespace&#34;: [&#34;std::filesystem&#34;], &#34;id-type&#34;: [&#34;class&#34;], &#34;cpp&#34;: [&#34;cpp17&#34;]}, &#34;sources&#34;: [{&#34;id&#34;: &#34;768a787e9455028c27a21e7e001bfe2074349c47&#34;, &#34;source&#34;: &#34;#include &lt;iostream&gt;\n#include &lt;filesystem&gt;\n#include &lt;fstream&gt;\n\nnamespace fs = std::filesystem;\n\nint main()\n{\n fs::create_directory(\&#34;dir_a\&#34;);\n std::ofstream{\&#34;dir_a/a.txt\&#34;};\n\n fs::create_directory(\&#34;dir_a/dir_b\&#34;);\n std::ofstream{\&#34;dir_a/dir_b/b.txt\&#34;};\n\n // dir_a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u76f4\u4e0b\u306b\u542b\u307e\u308c\u308b\u5168\u30d5\u30a1\u30a4\u30eb\u30fb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u51fa\u529b\n for (const fs::directory_entry&amp; x : fs::directory_iterator(\&#34;dir_a\&#34;)) {\n std::cout &lt;&lt; x.path() &lt;&lt; std::endl;\n }\n}\n&#34;}], &#34;page_id&#34;: [&#34;reference&#34;, &#34;filesystem&#34;, &#34;directory_iterator&#34;]}">
7272
<nav class="navbar navbar-default" role="navigation">
7373
<div class="container-fluid">
7474
<div class="navbar-header">
@@ -188,8 +188,8 @@
188188

189189
<p class="text-right"><small>
190190
最終更新日時(UTC):
191-
<span itemprop="datePublished" content="2022-12-28T02:13:14">
192-
2022年12月28日 02時13分14秒
191+
<span itemprop="datePublished" content="2024-05-05T01:54:15">
192+
2024年05月05日 01時54分15秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -352,7 +352,7 @@ <h3>比較演算子</h3>
352352
</tbody>
353353
</table>
354354
<h2></h2>
355-
<p><div class="yata" id="643a75512595c5f1b79b22663707813fb9e7de19"><div class="codehilite"><pre><span></span><code><span class="cp">#include</span> <span class="cpf"><a href="https://cpprefjp.github.io/reference/iostream.html">&lt;iostream&gt;</a></span><span class="cp"></span>
355+
<p><div class="yata" id="768a787e9455028c27a21e7e001bfe2074349c47"><div class="codehilite"><pre><span></span><code><span class="cp">#include</span> <span class="cpf"><a href="https://cpprefjp.github.io/reference/iostream.html">&lt;iostream&gt;</a></span><span class="cp"></span>
356356
<span class="cp">#include</span> <span class="cpf"><a href="https://cpprefjp.github.io/reference/filesystem.html">&lt;filesystem&gt;</a></span><span class="cp"></span>
357357
<span class="cp">#include</span> <span class="cpf"><a href="https://cpprefjp.github.io/reference/fstream.html">&lt;fstream&gt;</a></span><span class="cp"></span>
358358

@@ -366,7 +366,7 @@ <h2>例</h2>
366366
<span class="n"><a href="https://cpprefjp.github.io/reference/filesystem/create_directory.html">fs::create_directory</a></span><span class="p">(</span><span class="s">"dir_a/dir_b"</span><span class="p">);</span>
367367
<span class="n">std</span><span class="o">::</span><span class="n">ofstream</span><span class="p">{</span><span class="s">"dir_a/dir_b/b.txt"</span><span class="p">};</span>
368368

369-
<span class="c1">// dir_aディレクトリ直下に含まれる全ファイルを出力</span>
369+
<span class="c1">// dir_aディレクトリ直下に含まれる全ファイル・ディレクトリを出力</span>
370370
<span class="k">for</span> <span class="p">(</span><span class="k">const</span> <span class="n"><a href="https://cpprefjp.github.io/reference/filesystem/directory_entry.html">fs::directory_entry</a></span><span class="o">&amp;</span> <span class="nl">x</span> <span class="p">:</span> <span class="n"><span style="color:#ff0000">fs::directory_iterator</span></span><span class="p">(</span><span class="s">"dir_a"</span><span class="p">))</span> <span class="p">{</span>
371371
<span class="n"><a href="https://cpprefjp.github.io/reference/iostream/cout.html">std::cout</a></span> <span class="o">&lt;&lt;</span> <span class="n"><a href="https://cpprefjp.github.io/reference/filesystem/directory_entry/path.html">x.path()</a></span> <span class="o">&lt;&lt;</span> <span class="n"><a href="https://cpprefjp.github.io/reference/ostream/endl.html">std::endl</a></span><span class="p">;</span>
372372
<span class="p">}</span>

reference/filesystem/recursive_directory_iterator.html

Lines changed: 5 additions & 5 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;filesystem&#34;], &#34;namespace&#34;: [&#34;std::filesystem&#34;], &#34;id-type&#34;: [&#34;class&#34;], &#34;cpp&#34;: [&#34;cpp17&#34;]}, &#34;sources&#34;: [{&#34;id&#34;: &#34;33e55724907910bb30c5c35bdf647b2ce0a099e2&#34;, &#34;source&#34;: &#34;#include &lt;iostream&gt;\n#include &lt;filesystem&gt;\n#include &lt;fstream&gt;\n\nnamespace fs = std::filesystem;\n\nint main()\n{\n fs::create_directory(\&#34;dir_a\&#34;);\n std::ofstream{\&#34;dir_a/a.txt\&#34;};\n\n fs::create_directory(\&#34;dir_a/dir_b\&#34;);\n std::ofstream{\&#34;dir_a/dir_b/b.txt\&#34;};\n\n // dir_a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u542b\u307e\u308c\u308b\u5168\u30d5\u30a1\u30a4\u30eb\u3092\u518d\u5e30\u7684\u306b\u51fa\u529b\n for (const fs::directory_entry&amp; x : fs::recursive_directory_iterator(\&#34;dir_a\&#34;)) {\n std::cout &lt;&lt; x.path() &lt;&lt; std::endl;\n }\n}\n&#34;}], &#34;page_id&#34;: [&#34;reference&#34;, &#34;filesystem&#34;, &#34;recursive_directory_iterator&#34;]}">
71+
<header data-kunai-mdinfo="{&#34;meta&#34;: {&#34;header&#34;: [&#34;filesystem&#34;], &#34;namespace&#34;: [&#34;std::filesystem&#34;], &#34;id-type&#34;: [&#34;class&#34;], &#34;cpp&#34;: [&#34;cpp17&#34;]}, &#34;sources&#34;: [{&#34;id&#34;: &#34;07ad0deb7fc4ec5981723917c7996b91b5fea701&#34;, &#34;source&#34;: &#34;#include &lt;iostream&gt;\n#include &lt;filesystem&gt;\n#include &lt;fstream&gt;\n\nnamespace fs = std::filesystem;\n\nint main()\n{\n fs::create_directory(\&#34;dir_a\&#34;);\n std::ofstream{\&#34;dir_a/a.txt\&#34;};\n\n fs::create_directory(\&#34;dir_a/dir_b\&#34;);\n std::ofstream{\&#34;dir_a/dir_b/b.txt\&#34;};\n\n // dir_a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u542b\u307e\u308c\u308b\u5168\u30d5\u30a1\u30a4\u30eb\u30fb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u518d\u5e30\u7684\u306b\u51fa\u529b\n for (const fs::directory_entry&amp; x : fs::recursive_directory_iterator(\&#34;dir_a\&#34;)) {\n std::cout &lt;&lt; x.path() &lt;&lt; std::endl;\n }\n}\n&#34;}], &#34;page_id&#34;: [&#34;reference&#34;, &#34;filesystem&#34;, &#34;recursive_directory_iterator&#34;]}">
7272
<nav class="navbar navbar-default" role="navigation">
7373
<div class="container-fluid">
7474
<div class="navbar-header">
@@ -188,8 +188,8 @@
188188

189189
<p class="text-right"><small>
190190
最終更新日時(UTC):
191-
<span itemprop="datePublished" content="2022-12-28T02:13:14">
192-
2022年12月28日 02時13分14秒
191+
<span itemprop="datePublished" content="2024-05-05T01:54:15">
192+
2024年05月05日 01時54分15秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -402,7 +402,7 @@ <h3>比較演算子</h3>
402402
</tbody>
403403
</table>
404404
<h2></h2>
405-
<p><div class="yata" id="33e55724907910bb30c5c35bdf647b2ce0a099e2"><div class="codehilite"><pre><span></span><code><span class="cp">#include</span> <span class="cpf"><a href="https://cpprefjp.github.io/reference/iostream.html">&lt;iostream&gt;</a></span><span class="cp"></span>
405+
<p><div class="yata" id="07ad0deb7fc4ec5981723917c7996b91b5fea701"><div class="codehilite"><pre><span></span><code><span class="cp">#include</span> <span class="cpf"><a href="https://cpprefjp.github.io/reference/iostream.html">&lt;iostream&gt;</a></span><span class="cp"></span>
406406
<span class="cp">#include</span> <span class="cpf"><a href="https://cpprefjp.github.io/reference/filesystem.html">&lt;filesystem&gt;</a></span><span class="cp"></span>
407407
<span class="cp">#include</span> <span class="cpf"><a href="https://cpprefjp.github.io/reference/fstream.html">&lt;fstream&gt;</a></span><span class="cp"></span>
408408

@@ -416,7 +416,7 @@ <h2>例</h2>
416416
<span class="n"><a href="https://cpprefjp.github.io/reference/filesystem/create_directory.html">fs::create_directory</a></span><span class="p">(</span><span class="s">"dir_a/dir_b"</span><span class="p">);</span>
417417
<span class="n">std</span><span class="o">::</span><span class="n">ofstream</span><span class="p">{</span><span class="s">"dir_a/dir_b/b.txt"</span><span class="p">};</span>
418418

419-
<span class="c1">// dir_aディレクトリに含まれる全ファイルを再帰的に出力</span>
419+
<span class="c1">// dir_aディレクトリに含まれる全ファイル・ディレクトリを再帰的に出力</span>
420420
<span class="k">for</span> <span class="p">(</span><span class="k">const</span> <span class="n"><a href="https://cpprefjp.github.io/reference/filesystem/directory_entry.html">fs::directory_entry</a></span><span class="o">&amp;</span> <span class="nl">x</span> <span class="p">:</span> <span class="n"><span style="color:#ff0000">fs::recursive_directory_iterator</span></span><span class="p">(</span><span class="s">"dir_a"</span><span class="p">))</span> <span class="p">{</span>
421421
<span class="n"><a href="https://cpprefjp.github.io/reference/iostream/cout.html">std::cout</a></span> <span class="o">&lt;&lt;</span> <span class="n"><a href="https://cpprefjp.github.io/reference/filesystem/directory_entry/path.html">x.path()</a></span> <span class="o">&lt;&lt;</span> <span class="n"><a href="https://cpprefjp.github.io/reference/ostream/endl.html">std::endl</a></span><span class="p">;</span>
422422
<span class="p">}</span>

rss.xml

Lines changed: 56 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,64 @@
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<title>cpprefjp - C++日本語リファレンス</title>
44
<link href="https://cpprefjp.github.io" />
5-
<updated>2024-05-04T14:38:40.550553</updated>
6-
<id>1836c9d4-87c1-4f60-89fa-c5990232a95d</id>
5+
<updated>2024-05-05T01:57:59.450532</updated>
6+
<id>11611f9c-e30d-4f31-bfb5-b406a5304ce8</id>
77

88

9+
<entry>
10+
<title>directory_iterator -- (recursive_)directory_iterator : ディレクトリも列挙されることを明記</title>
11+
<link href="https://cpprefjp.github.io/reference/filesystem/directory_iterator.html"/>
12+
<id>d12d62181564bfc35f400bed89cf4b787d112c44:reference/filesystem/directory_iterator.md</id>
13+
<updated>2024-05-05T10:54:15+09:00</updated>
14+
15+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/filesystem/directory_iterator.md b/reference/filesystem/directory_iterator.md
16+
index 844f2da3b..94b9c2051 100644
17+
--- a/reference/filesystem/directory_iterator.md
18+
+++ b/reference/filesystem/directory_iterator.md
19+
@@ -74,7 +74,7 @@ int main()
20+
fs::create_directory(&amp;#34;dir_a/dir_b&amp;#34;);
21+
std::ofstream{&amp;#34;dir_a/dir_b/b.txt&amp;#34;};
22+
23+
- // dir_aディレクトリ直下に含まれる全ファイルを出力
24+
+ // dir_aディレクトリ直下に含まれる全ファイル・ディレクトリを出力
25+
for (const fs::directory_entry&amp;amp; x : fs::directory_iterator(&amp;#34;dir_a&amp;#34;)) {
26+
std::cout &amp;lt;&amp;lt; x.path() &amp;lt;&amp;lt; std::endl;
27+
}
28+
&lt;/code&gt;&lt;/pre&gt;</summary>
29+
30+
<author>
31+
<name>Akira Takahashi</name>
32+
<email>[email protected]</email>
33+
</author>
34+
</entry>
35+
36+
<entry>
37+
<title>recursive_directory_iterator -- (recursive_)directory_iterator : ディレクトリも列挙されることを明記</title>
38+
<link href="https://cpprefjp.github.io/reference/filesystem/recursive_directory_iterator.html"/>
39+
<id>d12d62181564bfc35f400bed89cf4b787d112c44:reference/filesystem/recursive_directory_iterator.md</id>
40+
<updated>2024-05-05T10:54:15+09:00</updated>
41+
42+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/filesystem/recursive_directory_iterator.md b/reference/filesystem/recursive_directory_iterator.md
43+
index 65e497b1a..5aab4c90d 100644
44+
--- a/reference/filesystem/recursive_directory_iterator.md
45+
+++ b/reference/filesystem/recursive_directory_iterator.md
46+
@@ -92,7 +92,7 @@ int main()
47+
fs::create_directory(&amp;#34;dir_a/dir_b&amp;#34;);
48+
std::ofstream{&amp;#34;dir_a/dir_b/b.txt&amp;#34;};
49+
50+
- // dir_aディレクトリに含まれる全ファイルを再帰的に出力
51+
+ // dir_aディレクトリに含まれる全ファイル・ディレクトリを再帰的に出力
52+
for (const fs::directory_entry&amp;amp; x : fs::recursive_directory_iterator(&amp;#34;dir_a&amp;#34;)) {
53+
std::cout &amp;lt;&amp;lt; x.path() &amp;lt;&amp;lt; std::endl;
54+
}
55+
&lt;/code&gt;&lt;/pre&gt;</summary>
56+
57+
<author>
58+
<name>Akira Takahashi</name>
59+
<email>[email protected]</email>
60+
</author>
61+
</entry>
62+
963
<entry>
1064
<title>empty -- view_interface::empty : LWG Issue 3715対応</title>
1165
<link href="https://cpprefjp.github.io/reference/ranges/view_interface/empty.html"/>
@@ -238,30 +292,4 @@ index 0d07b50f5..6203910d3 100644
238292
</author>
239293
</entry>
240294

241-
<entry>
242-
<title>formatter -- Update formatter.md</title>
243-
<link href="https://cpprefjp.github.io/reference/format/formatter.html"/>
244-
<id>33fdff4259aba54e5639229f70eea4743e48432c:reference/format/formatter.md</id>
245-
<updated>2024-04-29T19:32:04+09:00</updated>
246-
247-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/format/formatter.md b/reference/format/formatter.md
248-
index 800229fdd..1f02015d1 100644
249-
--- a/reference/format/formatter.md
250-
+++ b/reference/format/formatter.md
251-
@@ -109,7 +109,6 @@ namespace std {
252-
typename FC::template formatter_type&amp;lt;T&amp;gt; f;
253-
pc.advance_to(f.parse(pc)); // オプションを解析し状態を保存する
254-
fc.advance_to(f.format(u, fc)); // 状態をもとにフォーマットを行う
255-
-assert(pc.begin() == pc.end() || *pc.begin() == &amp;#39;}&amp;#39;);
256-
```
257-
* pc.advance_to[link /reference/format/basic_format_parse_context/advance_to.md]
258-
* fc.advance_to[link /reference/format/basic_format_context/advance_to.md]
259-
&lt;/code&gt;&lt;/pre&gt;</summary>
260-
261-
<author>
262-
<name>Tetsuro Matsumura</name>
263-
<email>[email protected]</email>
264-
</author>
265-
</entry>
266-
267295
</feed>

sitemap.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30243,7 +30243,7 @@
3024330243

3024430244
<url>
3024530245
<loc>https://cpprefjp.github.io/reference/filesystem/recursive_directory_iterator.html</loc>
30246-
<lastmod>2024-01-22T20:08:46+09:00</lastmod>
30246+
<lastmod>2024-05-05T10:54:15+09:00</lastmod>
3024730247
<changefreq>daily</changefreq>
3024830248
<priority>0.7</priority>
3024930249
</url>
@@ -30355,7 +30355,7 @@
3035530355

3035630356
<url>
3035730357
<loc>https://cpprefjp.github.io/reference/filesystem/directory_iterator.html</loc>
30358-
<lastmod>2024-01-22T20:08:46+09:00</lastmod>
30358+
<lastmod>2024-05-05T10:54:15+09:00</lastmod>
3035930359
<changefreq>daily</changefreq>
3036030360
<priority>0.7</priority>
3036130361
</url>

0 commit comments

Comments
 (0)