Skip to content

Commit 61c6ac2

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 930cb34 commit 61c6ac2

File tree

4 files changed

+82
-35
lines changed

4 files changed

+82
-35
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">1</span><span class="n"><a href="duration/op_h.html">3h</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">gauupwJgOrUDWXddwlXBKGTMzigToWN</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/new/bad_array_new_length.html

Lines changed: 28 additions & 4 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;new&#34;], &#34;namespace&#34;: [&#34;std&#34;], &#34;id-type&#34;: [&#34;class&#34;], &#34;cpp&#34;: [&#34;cpp11&#34;]}, &#34;sources&#34;: [], &#34;page_id&#34;: [&#34;reference&#34;, &#34;new&#34;, &#34;bad_array_new_length&#34;]}">
71+
<header data-kunai-mdinfo="{&#34;meta&#34;: {&#34;header&#34;: [&#34;new&#34;], &#34;namespace&#34;: [&#34;std&#34;], &#34;id-type&#34;: [&#34;class&#34;], &#34;cpp&#34;: [&#34;cpp11&#34;]}, &#34;sources&#34;: [{&#34;id&#34;: &#34;6c54f201b2e3fd3a8ab9d83e5d71c3ad98975839&#34;, &#34;source&#34;: &#34;#include &lt;iostream&gt;\n\nint main() {\n int n = -1;\n try {\n int* p = new int[n];\n delete[] p;\n }\n catch (std::bad_array_new_length&amp;) {\n std::cout &lt;&lt; \&#34;bad array new length\&#34; &lt;&lt; std::endl;\n }\n}\n&#34;}], &#34;page_id&#34;: [&#34;reference&#34;, &#34;new&#34;, &#34;bad_array_new_length&#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="2017-03-15T08:17:19">
192-
2017年03月15日 08時17分19秒
191+
<span itemprop="datePublished" content="2024-10-16T04:02:39">
192+
2024年10月16日 04時02分39秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -223,8 +223,32 @@
223223
</p>
224224
<h2>概要</h2>
225225
<p>動的に記憶域を確保しようとする配列の長さが 0 未満または処理系の最大値以上の場合に送出される例外。</p>
226+
<h2></h2>
227+
<p><div class="yata" id="6c54f201b2e3fd3a8ab9d83e5d71c3ad98975839"><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>
228+
229+
<span class="kt">int</span> <span class="nf">main</span><span class="p">()</span> <span class="p">{</span>
230+
<span class="kt">int</span> <span class="n">n</span> <span class="o">=</span> <span class="o">-</span><span class="mi">1</span><span class="p">;</span>
231+
<span class="k">try</span> <span class="p">{</span>
232+
<span class="kt">int</span><span class="o">*</span> <span class="n">p</span> <span class="o">=</span> <span class="k">new</span> <span class="kt">int</span><span class="p">[</span><span class="n">n</span><span class="p">];</span>
233+
<span class="k">delete</span><span class="p">[]</span> <span class="n">p</span><span class="p">;</span>
234+
<span class="p">}</span>
235+
<span class="k">catch</span> <span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">bad_array_new_length</span><span class="o">&amp;</span><span class="p">)</span> <span class="p">{</span>
236+
<span class="n"><a href="../iostream/cout.html">std::cout</a></span> <span class="o">&lt;&lt;</span> <span class="s">"bad array new length"</span> <span class="o">&lt;&lt;</span> <span class="n"><a href="../ostream/endl.html">std::endl</a></span><span class="p">;</span>
237+
<span class="p">}</span>
238+
<span class="p">}</span>
239+
</code></pre></div>
240+
</div></p>
241+
<h3>出力例</h3>
242+
<p><pre><code>bad array new length
243+
</code></pre></p>
226244
<h2>バージョン</h2>
227-
<p>C++11</p></div>
245+
<p>C++11</p>
246+
<h3>処理系</h3>
247+
<ul>
248+
<li><a href="../../implementation.html#clang">Clang</a>: 7 <span aria-label="検証済" role="img" title="検証済"></span></li>
249+
<li><a href="../../implementation.html#gcc">GCC</a>: 4.9 <span aria-label="検証済" role="img" title="検証済"></span></li>
250+
<li><a href="../../implementation.html#visual_cpp">Visual C++</a>: 2019 <span aria-label="検証済" role="img" title="検証済"></span></li>
251+
</ul></div>
228252

229253
</div>
230254
</div>

rss.xml

Lines changed: 52 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,60 @@
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<title>cpprefjp - C++日本語リファレンス</title>
44
<link href="https://cpprefjp.github.io" />
5-
<updated>2024-10-16T03:46:33.543594</updated>
6-
<id>53451103-5cfa-4aa6-a20b-0abdcf3e9bdc</id>
5+
<updated>2024-10-16T04:05:37.405688</updated>
6+
<id>d9eedebb-d64b-40f7-be76-c1dd84747577</id>
77

88

9+
<entry>
10+
<title>bad_array_new_length -- bad_array_new_length : サンプルコードを追加</title>
11+
<link href="https://cpprefjp.github.io/reference/new/bad_array_new_length.html"/>
12+
<id>ab361724c3a851217581c9daf8eecf009f7527ee:reference/new/bad_array_new_length.md</id>
13+
<updated>2024-10-16T13:02:39+09:00</updated>
14+
15+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/new/bad_array_new_length.md b/reference/new/bad_array_new_length.md
16+
index 76f189b9b..6ab8cac67 100644
17+
--- a/reference/new/bad_array_new_length.md
18+
+++ b/reference/new/bad_array_new_length.md
19+
@@ -18,6 +18,31 @@ namespace std {
20+
動的に記憶域を確保しようとする配列の長さが 0 未満または処理系の最大値以上の場合に送出される例外。
21+
22+
23+
+## 例
24+
+```cpp example
25+
+#include &amp;lt;iostream&amp;gt;
26+
+
27+
+int main() {
28+
+ int n = -1;
29+
+ try {
30+
+ int* p = new int[n];
31+
+ delete[] p;
32+
+ }
33+
+ catch (std::bad_array_new_length&amp;amp;) {
34+
+ std::cout &amp;lt;&amp;lt; &amp;#34;bad array new length&amp;#34; &amp;lt;&amp;lt; std::endl;
35+
+ }
36+
+}
37+
+```
38+
+
39+
+### 出力例
40+
+```
41+
+bad array new length
42+
+```
43+
+
44+
## バージョン
45+
C++11
46+
47+
+### 処理系
48+
+- [Clang](/implementation.md#clang): 7 [mark verified]
49+
+- [GCC](/implementation.md#gcc): 4.9 [mark verified]
50+
+- [Visual C++](/implementation.md#visual_cpp): 2019 [mark verified]
51+
&lt;/code&gt;&lt;/pre&gt;</summary>
52+
53+
<author>
54+
<name>Akira Takahashi</name>
55+
<email>faithandbrave@gmail.com</email>
56+
</author>
57+
</entry>
58+
959
<entry>
1060
<title>knuth_b -- knuth_b : 書籍での紹介を「考案」→「述べられている」に修正し、.NETの実装は別アルゴリズムであるため言及を削除 #1355</title>
1161
<link href="https://cpprefjp.github.io/reference/random/knuth_b.html"/>
@@ -265,31 +315,4 @@ index 327897c3f..1c6d6ea38 100644
265315
</author>
266316
</entry>
267317

268-
<entry>
269-
<title>llrint -- llrint() のページの lround() を llround() に変更</title>
270-
<link href="https://cpprefjp.github.io/reference/cmath/llrint.html"/>
271-
<id>24f16493349bb6016494e0f10523c9db5a2d3020:reference/cmath/llrint.md</id>
272-
<updated>2024-10-13T01:15:09+09:00</updated>
273-
274-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/cmath/llrint.md b/reference/cmath/llrint.md
275-
index 37e2f8770..aa478ca9b 100644
276-
--- a/reference/cmath/llrint.md
277-
+++ b/reference/cmath/llrint.md
278-
@@ -45,7 +45,7 @@ namespace std {
279-
- C99 では、丸めモードや浮動小数点例外へのアクセスには `#pragma STDC FENV_ACCESS ON` でなければなければならないと記載されているが、C++ には該当する記載を見つけることができなかった。
280-
なお、C99 でも `FENV_ACCESS` のデフォルトは処理系定義である。
281-
- 丸めモード [`FE_TONEAREST`](../cfenv/fe_tonearest.md) は四捨五入ではなく、最近接偶数への丸めであることに注意。(例を参照)
282-
- 四捨五入が必要であれば、[`lround`](lround.md) を使用すること。(ただし、[`lround`](lround.md) は本関数と異なり、ISO IEC 60559 に準拠していても [`FE_INEXACT`](../cfenv/fe_inexact.md) が発生するか否かは処理系定義である)
283-
+ 四捨五入が必要であれば、[`llround`](llround.md) を使用すること。(ただし、[`llround`](llround.md) は本関数と異なり、ISO IEC 60559 に準拠していても [`FE_INEXACT`](../cfenv/fe_inexact.md) が発生するか否かは処理系定義である)
284-
- C++23では、(1)、(2)、(3)が(4)に統合され、拡張浮動小数点数型を含む浮動小数点数型へのオーバーロードとして定義された
285-
286-
287-
&lt;/code&gt;&lt;/pre&gt;</summary>
288-
289-
<author>
290-
<name>Raclamusi</name>
291-
<email>raclamusi@gmail.com</email>
292-
</author>
293-
</entry>
294-
295318
</feed>

sitemap.xml

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

3368133681
<url>
3368233682
<loc>https://cpprefjp.github.io/reference/new/bad_array_new_length.html</loc>
33683-
<lastmod>2024-08-01T22:40:15+09:00</lastmod>
33683+
<lastmod>2024-10-16T13:02:39+09:00</lastmod>
3368433684
<changefreq>daily</changefreq>
3368533685
<priority>0.7</priority>
3368633686
</url>

0 commit comments

Comments
 (0)