22<feed xmlns =" http://www.w3.org/2005/Atom" >
33 <title >cpprefjp - C++日本語リファレンス</title >
44 <link href =" https://cpprefjp.github.io" />
5- <updated >2025-07-08T14:10:54.212302 </updated >
6- <id >3ccc6d18-494d-4a61-bb25-8b5a4e6afc95 </id >
5+ <updated >2025-07-08T14:32:09.901489 </updated >
6+ <id >cc98b8a3-7750-4fa7-9a9f-60ca2d9aaeb4 </id >
77
88
9+ <entry >
10+ <title >realloc -- realloc: 未定義 → 未規定</title >
11+ <link href =" https://cpprefjp.github.io/reference/cstdlib/realloc.html" />
12+ <id >89af337229e0e55fccff475dc596b66b78960384:reference/cstdlib/realloc.md</id >
13+ <updated >2025-07-08T23:28:00+09:00</updated >
14+
15+ <summary type =" html" >< pre>< code> diff --git a/reference/cstdlib/realloc.md b/reference/cstdlib/realloc.md
16+ index ff0dada9d..be2e9cf1a 100644
17+ --- a/reference/cstdlib/realloc.md
18+ +++ b/reference/cstdlib/realloc.md
19+ @@ -59,7 +59,7 @@ int main() {
20+ std::free(p);
21+ std::cerr & lt;& lt; & #34;realloc failed& #34; & lt;& lt; std::endl;
22+ return 1;
23+ - }// 拡張後の内容を出力(追加領域の値は未定義)
24+ + }// 拡張後の内容を出力(追加領域の値は未規定)
25+ for (int i = 0; i & lt; 10; ++i) {
26+ std::cout & lt;& lt; q[i] & lt;& lt; & #39; & #39;;
27+ }
28+ < /code>< /pre> </summary >
29+
30+ <author >
31+ <name >Akira Takahashi</name >
32+ 33+ </author >
34+ </entry >
35+
936 <entry >
1037 <title >realloc -- realloc : fix typo</title >
1138 <link href =" https://cpprefjp.github.io/reference/cstdlib/realloc.html" />
@@ -151,40 +178,4 @@ index 869a70edd..2951ef9a9 100644
151178 </author >
152179 </entry >
153180
154- <entry >
155- <title >realloc -- update</title >
156- <link href =" https://cpprefjp.github.io/reference/cstdlib/realloc.html" />
157- <id >56437ced601cee2e9ca6a80c6c5c1acd88a4e088:reference/cstdlib/realloc.md</id >
158- <updated >2025-07-08T20:57:19+09:00</updated >
159-
160- <summary type =" html" >< pre>< code> diff --git a/reference/cstdlib/realloc.md b/reference/cstdlib/realloc.md
161- index 3b807a5b8..508213991 100644
162- --- a/reference/cstdlib/realloc.md
163- +++ b/reference/cstdlib/realloc.md
164- @@ -14,7 +14,7 @@ namespace std {
165-
166- `ptr`は、`calloc`、`malloc`、`realloc`で事前に確保され、なおかつ`free`で解放されていないメモリである必要がある。
167-
168- -それ以外のメモリの場合、動作は未定義である。
169- +それ以外のメモリの場合、動作は未定義。
170-
171- `ptr`に`nullptr`を渡した場合、`malloc(new_size)`として動作する。
172-
173- @@ -25,7 +25,7 @@ namespace std {
174-
175- 縮小した場合、再確保されたメモリのサイズまでの領域の内容が保持される。
176-
177- - 拡張した場合、新しい領域の内容は未定義である。
178- + 拡張した場合、新しい領域の内容は未定義。
179-
180- - 新しいサイズの領域を確保、割り当てする。その後、新しいサイズと古いサイズのいずれか小さい方のサイズに等しいメモリ領域をコピーし、古いブロックを解放する。
181-
182- < /code>< /pre> </summary >
183-
184- <author >
185- <name >K10-K10</name >
186- 187- </author >
188- </entry >
189-
190181</feed >
0 commit comments