|
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>2025-05-28T09:23:23.762381</updated> |
6 |
| - <id>3fcb7494-2519-4849-b3f5-40fc3c71528d</id> |
| 5 | + <updated>2025-05-28T09:32:47.915574</updated> |
| 6 | + <id>c54fe045-d901-483a-a3bd-eda85b09b679</id> |
7 | 7 |
|
8 | 8 |
|
| 9 | + <entry> |
| 10 | + <title>basic_filebuf -- 表の表示崩れを修正</title> |
| 11 | + <link href="https://cpprefjp.github.io/reference/fstream/basic_filebuf.html"/> |
| 12 | + <id>16242c558605d77ff06276bab29d0701fdc2c0a9:reference/fstream/basic_filebuf.md</id> |
| 13 | + <updated>2025-05-28T18:29:15+09:00</updated> |
| 14 | + |
| 15 | + <summary type="html"><pre><code>diff --git a/reference/fstream/basic_filebuf.md b/reference/fstream/basic_filebuf.md |
| 16 | +index 110b46a66..5f8acb66e 100644 |
| 17 | +--- a/reference/fstream/basic_filebuf.md |
| 18 | ++++ b/reference/fstream/basic_filebuf.md |
| 19 | +@@ -51,8 +51,8 @@ Cの`FILE*`に対する入出力関数を使って実装される。 |
| 20 | + |
| 21 | + ### 環境固有の情報 |
| 22 | + |
| 23 | +-| 名前 | 説明|対応バージョン | |
| 24 | +-|-----|-----|-------------| |
| 25 | ++| 名前 | 説明 | 対応バージョン | |
| 26 | ++|-----|------|--------------| |
| 27 | + | [`native_handle()`](basic_filebuf/native_handle.md) | ネイティブハンドルを取得する[処理系定義] | C++26 | |
| 28 | + |
| 29 | + |
| 30 | +</code></pre></summary> |
| 31 | + |
| 32 | + <author> |
| 33 | + <name>Akira Takahashi</name> |
| 34 | + |
| 35 | + </author> |
| 36 | + </entry> |
| 37 | + |
| 38 | + <entry> |
| 39 | + <title>basic_fstream -- 表の表示崩れを修正</title> |
| 40 | + <link href="https://cpprefjp.github.io/reference/fstream/basic_fstream.html"/> |
| 41 | + <id>16242c558605d77ff06276bab29d0701fdc2c0a9:reference/fstream/basic_fstream.md</id> |
| 42 | + <updated>2025-05-28T18:29:15+09:00</updated> |
| 43 | + |
| 44 | + <summary type="html"><pre><code>diff --git a/reference/fstream/basic_fstream.md b/reference/fstream/basic_fstream.md |
| 45 | +index 38d2bd7be..6db7c5139 100644 |
| 46 | +--- a/reference/fstream/basic_fstream.md |
| 47 | ++++ b/reference/fstream/basic_fstream.md |
| 48 | +@@ -34,8 +34,8 @@ namespace std { |
| 49 | + |
| 50 | + ### ネイティブハンドルの取得 |
| 51 | + |
| 52 | +-| 名前 | 説明|対応バージョン | |
| 53 | +-|-----|-----|-------------| |
| 54 | ++| 名前 | 説明 | 対応バージョン | |
| 55 | ++|-----|------|--------------| |
| 56 | + | [`native_handle()`](basic_fstream/native_handle.md) | ネイティブハンドルを取得する[処理系定義] | C++26 | |
| 57 | + |
| 58 | + |
| 59 | +</code></pre></summary> |
| 60 | + |
| 61 | + <author> |
| 62 | + <name>Akira Takahashi</name> |
| 63 | + |
| 64 | + </author> |
| 65 | + </entry> |
| 66 | + |
| 67 | + <entry> |
| 68 | + <title>basic_ifstream -- 表の表示崩れを修正</title> |
| 69 | + <link href="https://cpprefjp.github.io/reference/fstream/basic_ifstream.html"/> |
| 70 | + <id>16242c558605d77ff06276bab29d0701fdc2c0a9:reference/fstream/basic_ifstream.md</id> |
| 71 | + <updated>2025-05-28T18:29:15+09:00</updated> |
| 72 | + |
| 73 | + <summary type="html"><pre><code>diff --git a/reference/fstream/basic_ifstream.md b/reference/fstream/basic_ifstream.md |
| 74 | +index 6c1b64081..fd40a5789 100644 |
| 75 | +--- a/reference/fstream/basic_ifstream.md |
| 76 | ++++ b/reference/fstream/basic_ifstream.md |
| 77 | +@@ -35,8 +35,8 @@ namespace std { |
| 78 | + |
| 79 | + ### ネイティブハンドルの取得 |
| 80 | + |
| 81 | +-| 名前 | 説明|対応バージョン | |
| 82 | +-|-----|-----|-------------| |
| 83 | ++| 名前 | 説明 | 対応バージョン | |
| 84 | ++|-----|------|--------------| |
| 85 | + | [`native_handle()`](basic_ifstream/native_handle.md) | ネイティブハンドルを取得する[処理系定義] | C++26 | |
| 86 | + |
| 87 | + |
| 88 | +</code></pre></summary> |
| 89 | + |
| 90 | + <author> |
| 91 | + <name>Akira Takahashi</name> |
| 92 | + |
| 93 | + </author> |
| 94 | + </entry> |
| 95 | + |
| 96 | + <entry> |
| 97 | + <title>basic_ofstream -- 表の表示崩れを修正</title> |
| 98 | + <link href="https://cpprefjp.github.io/reference/fstream/basic_ofstream.html"/> |
| 99 | + <id>16242c558605d77ff06276bab29d0701fdc2c0a9:reference/fstream/basic_ofstream.md</id> |
| 100 | + <updated>2025-05-28T18:29:15+09:00</updated> |
| 101 | + |
| 102 | + <summary type="html"><pre><code>diff --git a/reference/fstream/basic_ofstream.md b/reference/fstream/basic_ofstream.md |
| 103 | +index 1bc10e0d7..f370f905a 100644 |
| 104 | +--- a/reference/fstream/basic_ofstream.md |
| 105 | ++++ b/reference/fstream/basic_ofstream.md |
| 106 | +@@ -35,8 +35,8 @@ namespace std { |
| 107 | + |
| 108 | + ### ネイティブハンドルの取得 |
| 109 | + |
| 110 | +-| 名前 | 説明|対応バージョン | |
| 111 | +-|-----|-----|-------------| |
| 112 | ++| 名前 | 説明 | 対応バージョン | |
| 113 | ++|-----|------|--------------| |
| 114 | + | [`native_handle()`](basic_ofstream/native_handle.md) | ネイティブハンドルを取得する[処理系定義] | C++26 | |
| 115 | + |
| 116 | + |
| 117 | +</code></pre></summary> |
| 118 | + |
| 119 | + <author> |
| 120 | + <name>Akira Takahashi</name> |
| 121 | + |
| 122 | + </author> |
| 123 | + </entry> |
| 124 | + |
9 | 125 | <entry>
|
10 | 126 | <title>native_handle -- コード修飾ミスを修正</title>
|
11 | 127 | <link href="https://cpprefjp.github.io/reference/fstream/basic_filebuf/native_handle.html"/>
|
@@ -848,104 +964,6 @@ index 34e226e4f..ddccc8f3c 100644
|
848 | 964 | +* ofs.is_open[link basic_ofstream/is_open.md]
|
849 | 965 | +* ofs.close[link basic_ofstream/close.md]
|
850 | 966 |
|
851 |
| -</code></pre></summary> |
852 |
| - |
853 |
| - <author> |
854 |
| - <name>Akira Takahashi</name> |
855 |
| - |
856 |
| - </author> |
857 |
| - </entry> |
858 |
| - |
859 |
| - <entry> |
860 |
| - <title>basic_ifstream -- basic_ifstream, basic_ofstream : サンプルコードを追加</title> |
861 |
| - <link href="https://cpprefjp.github.io/reference/fstream/basic_ifstream.html"/> |
862 |
| - <id>3a27b55ef5f235a317e5a0e7767db1ad05b77998:reference/fstream/basic_ifstream.md</id> |
863 |
| - <updated>2025-05-28T17:27:36+09:00</updated> |
864 |
| - |
865 |
| - <summary type="html"><pre><code>diff --git a/reference/fstream/basic_ifstream.md b/reference/fstream/basic_ifstream.md |
866 |
| -index 5f0a699a6..c15e79c2c 100644 |
867 |
| ---- a/reference/fstream/basic_ifstream.md |
868 |
| -+++ b/reference/fstream/basic_ifstream.md |
869 |
| -@@ -50,3 +50,32 @@ namespace std { |
870 |
| - | `off_type` | `Traits::off_type` | | |
871 |
| - | `traits_type` | テンプレート仮引数`Traits` | | |
872 |
| - |
873 |
| -+## 例 |
874 |
| -+```cpp example |
875 |
| -+#include &lt;fstream&gt; |
876 |
| -+#include &lt;iostream&gt; |
877 |
| -+#include &lt;string&gt; |
878 |
| -+ |
879 |
| -+int main() { |
880 |
| -+ // example.txtファイルを読み取り専用で開く |
881 |
| -+ std::ifstream ifs(&#34;example.txt&#34;); |
882 |
| -+ if (!ifs.is_open()) { |
883 |
| -+ std::cerr &lt;&lt; &#34;ファイルを開けませんでした&#34; &lt;&lt; std::endl; |
884 |
| -+ return 1; |
885 |
| -+ } |
886 |
| -+ |
887 |
| -+ // ファイルの内容を1行ずつ読み取り、出力する |
888 |
| -+ std::string line; |
889 |
| -+ while (std::getline(ifs, line)) { |
890 |
| -+ std::cout &lt;&lt; line &lt;&lt; std::endl; |
891 |
| -+ } |
892 |
| -+ |
893 |
| -+ // ファイルを閉じる (デストラクタでも自動的に閉じられる) |
894 |
| -+ ifs.close(); |
895 |
| -+} |
896 |
| -+``` |
897 |
| -+* std::ifstream[color ff0000] |
898 |
| -+* ifs.is_open[link ifstream/is_open.md] |
899 |
| -+* ifs.close[link ifstream/close.md] |
900 |
| -+* std::getline[link /reference/string/basic_string/getline.md] |
901 |
| -+ |
902 |
| -</code></pre></summary> |
903 |
| - |
904 |
| - <author> |
905 |
| - <name>Akira Takahashi</name> |
906 |
| - |
907 |
| - </author> |
908 |
| - </entry> |
909 |
| - |
910 |
| - <entry> |
911 |
| - <title>basic_ofstream -- basic_ifstream, basic_ofstream : サンプルコードを追加</title> |
912 |
| - <link href="https://cpprefjp.github.io/reference/fstream/basic_ofstream.html"/> |
913 |
| - <id>3a27b55ef5f235a317e5a0e7767db1ad05b77998:reference/fstream/basic_ofstream.md</id> |
914 |
| - <updated>2025-05-28T17:27:36+09:00</updated> |
915 |
| - |
916 |
| - <summary type="html"><pre><code>diff --git a/reference/fstream/basic_ofstream.md b/reference/fstream/basic_ofstream.md |
917 |
| -index 4f02d74d5..34e226e4f 100644 |
918 |
| ---- a/reference/fstream/basic_ofstream.md |
919 |
| -+++ b/reference/fstream/basic_ofstream.md |
920 |
| -@@ -50,3 +50,28 @@ namespace std { |
921 |
| - | `off_type` | `Traits::off_type` | | |
922 |
| - | `traits_type` | テンプレート仮引数`Traits` | | |
923 |
| - |
924 |
| -+## 例 |
925 |
| -+```cpp example |
926 |
| -+#include &lt;fstream&gt; |
927 |
| -+#include &lt;iostream&gt; |
928 |
| -+#include &lt;string&gt; |
929 |
| -+ |
930 |
| -+int main() { |
931 |
| -+ // example.txtファイルを出力専用で開く |
932 |
| -+ std::ofstream ofs(&#34;example.txt&#34;); |
933 |
| -+ if (!ofs.is_open()) { |
934 |
| -+ std::cerr &lt;&lt; &#34;ファイルを開けませんでした&#34; &lt;&lt; std::endl; |
935 |
| -+ return 1; |
936 |
| -+ } |
937 |
| -+ |
938 |
| -+ // ファイルに文字列を書き込む |
939 |
| -+ ofs &lt;&lt; &#34;Hello, world!&#34; &lt;&lt; std::endl; |
940 |
| -+ |
941 |
| -+ // ファイルを閉じる (デストラクタでも自動的に閉じられる) |
942 |
| -+ ofs.close(); |
943 |
| -+} |
944 |
| -+``` |
945 |
| -+* std::ofstream[color ff0000] |
946 |
| -+* ofs.is_open[link ofstream/is_open.md] |
947 |
| -+* ofs.close[link ofstream/close.md] |
948 |
| -+ |
949 | 967 | </code></pre></summary>
|
950 | 968 |
|
951 | 969 | <author>
|
|
0 commit comments