Skip to content

Commit f1e8b15

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 4f71dc2 commit f1e8b15

File tree

4 files changed

+44
-8
lines changed

4 files changed

+44
-8
lines changed

reference/chrono/make24.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ <h2>例</h2>
239239
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">12h</a></span><span class="p">,</span> <span class="nb">false</span><span class="p">)</span> <span class="o">==</span> <span class="n"><a href="duration/op_h.html">0h</a></span><span class="p">);</span>
240240

241241
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">12h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="n"><a href="duration/op_h.html">12h</a></span><span class="p">);</span>
242-
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">1h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="mi">1l</span><span class="n">DzwPxibUESNyBOxRtVtumQXxVBhxici</span><span class="p">);</span>
242+
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">1h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="mi">1</span><span class="n"><a href="duration/op_h.html">3h</a></span><span class="p">);</span>
243243
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">3h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="n"><a href="duration/op_h.html">15h</a></span><span class="p">);</span>
244244
<span class="n"><a href="../cassert/assert.html">assert</a></span><span class="p">(</span><span class="n"><span style="color:#ff0000">chrono::make24</span></span><span class="p">(</span><span class="n"><a href="duration/op_h.html">11h</a></span><span class="p">,</span> <span class="nb">true</span><span class="p">)</span> <span class="o">==</span> <span class="n"><a href="duration/op_h.html">23h</a></span><span class="p">);</span>
245245
<span class="p">}</span>

reference/cstdlib/realloc.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@
188188

189189
<p class="text-right"><small>
190190
最終更新日時(UTC):
191-
<span itemprop="datePublished" content="2025-07-08T10:57:31">
192-
2025年07月08日 10時57分31秒
191+
<span itemprop="datePublished" content="2025-07-08T11:57:19">
192+
2025年07月08日 11時57分19秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -221,15 +221,15 @@
221221
<h2>概要</h2>
222222
<p>確保済みの領域<code>ptr</code><code>new_size</code>に再確保する。</p>
223223
<p><code>ptr</code>は、<code>calloc</code><code>malloc</code><code>realloc</code>で事前に確保され、なおかつ<code>free</code>で解放されていないメモリである必要がある。</p>
224-
<p>それ以外のメモリの場合、<a class="cpprefjp-defined-word" data-desc="未定義の動作。処理系は予期せぬ動作をする可能性がある。要するに動作保証対象外。undefined behavior (UB)。" href="../../implementation-compliance.html#dfn-undefined-behavior">動作は未定義</a>である</p>
224+
<p>それ以外のメモリの場合、<a class="cpprefjp-defined-word" data-desc="未定義の動作。処理系は予期せぬ動作をする可能性がある。要するに動作保証対象外。undefined behavior (UB)。" href="../../implementation-compliance.html#dfn-undefined-behavior">動作は未定義</a></p>
225225
<p><code>ptr</code><code>nullptr</code>を渡した場合、<code>malloc(new_size)</code>として動作する。</p>
226226
<h2>効果</h2>
227227
<p>メモリの確保は次のいずれかの方法で行われる。</p>
228228
<ul>
229229
<li>
230230
<p>既存のメモリを拡張、縮小する。</p>
231231
<p>縮小した場合、再確保されたメモリのサイズまでの領域の内容が保持される。</p>
232-
<p>拡張した場合、新しい領域の内容は<a class="cpprefjp-defined-word" data-desc="未定義の動作。処理系は予期せぬ動作をする可能性がある。要するに動作保証対象外。undefined behavior (UB)。" href="../../implementation-compliance.html#dfn-undefined-behavior">未定義</a>である</p>
232+
<p>拡張した場合、新しい領域の内容は<a class="cpprefjp-defined-word" data-desc="未定義の動作。処理系は予期せぬ動作をする可能性がある。要するに動作保証対象外。undefined behavior (UB)。" href="../../implementation-compliance.html#dfn-undefined-behavior">未定義</a></p>
233233
</li>
234234
<li>
235235
<p>新しいサイズの領域を確保、割り当てする。その後、新しいサイズと古いサイズのいずれか小さい方のサイズに等しいメモリ領域をコピーし、古いブロックを解放する。</p>

rss.xml

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,46 @@
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-08T11:02:40.496193</updated>
6-
<id>41abd58d-ed47-4998-af79-9c741adf3147</id>
5+
<updated>2025-07-08T12:01:29.490728</updated>
6+
<id>9eb567fa-20f6-4412-afd5-5daed6b502f2</id>
77

88

9+
<entry>
10+
<title>realloc -- update</title>
11+
<link href="https://cpprefjp.github.io/reference/cstdlib/realloc.html"/>
12+
<id>56437ced601cee2e9ca6a80c6c5c1acd88a4e088:reference/cstdlib/realloc.md</id>
13+
<updated>2025-07-08T20:57:19+09:00</updated>
14+
15+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/cstdlib/realloc.md b/reference/cstdlib/realloc.md
16+
index 3b807a5b8..508213991 100644
17+
--- a/reference/cstdlib/realloc.md
18+
+++ b/reference/cstdlib/realloc.md
19+
@@ -14,7 +14,7 @@ namespace std {
20+
21+
`ptr`は、`calloc`、`malloc`、`realloc`で事前に確保され、なおかつ`free`で解放されていないメモリである必要がある。
22+
23+
-それ以外のメモリの場合、動作は未定義である。
24+
+それ以外のメモリの場合、動作は未定義。
25+
26+
`ptr`に`nullptr`を渡した場合、`malloc(new_size)`として動作する。
27+
28+
@@ -25,7 +25,7 @@ namespace std {
29+
30+
縮小した場合、再確保されたメモリのサイズまでの領域の内容が保持される。
31+
32+
- 拡張した場合、新しい領域の内容は未定義である。
33+
+ 拡張した場合、新しい領域の内容は未定義。
34+
35+
- 新しいサイズの領域を確保、割り当てする。その後、新しいサイズと古いサイズのいずれか小さい方のサイズに等しいメモリ領域をコピーし、古いブロックを解放する。
36+
37+
&lt;/code&gt;&lt;/pre&gt;</summary>
38+
39+
<author>
40+
<name>K10-K10</name>
41+
<email>[email protected]</email>
42+
</author>
43+
</entry>
44+
945
<entry>
1046
<title>free -- delete .nolink to `realloc`</title>
1147
<link href="https://cpprefjp.github.io/reference/cstdlib/free.html"/>

sitemap.xml

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

3145531455
<url>
3145631456
<loc>https://cpprefjp.github.io/reference/cstdlib/realloc.html</loc>
31457-
<lastmod>2025-07-08T19:57:31+09:00</lastmod>
31457+
<lastmod>2025-07-08T20:57:19+09:00</lastmod>
3145831458
<changefreq>daily</changefreq>
3145931459
<priority>0.7</priority>
3146031460
</url>

0 commit comments

Comments
 (0)