<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ringo6119</author_name>
  <author_url>https://blog.hatena.ne.jp/ringo6119/</author_url>
  <blog_title>リジェクトされました</blog_title>
  <blog_url>https://ri.hateblo.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>（もうちょっとちゃんと書く かもしれない） new 演算子でメモリを確保するときに投げられる例外は， bad_alloc try{ int x = new int[100]; }catch(bad_alloc ba){ cout &lt;&lt; &quot;メモリ割り当てエラー&quot; &lt;&lt; endl; cout &lt;&lt; ba.what(); return NULL; //exit(1); } // NULLが返ってきた時用 if(x == NULL){ cout &lt;&lt; &quot;メモリ割り当てエラー&quot; &lt;&lt; endl; return NULL; //exit(1); } コンパイラによっては例外が投げられず，ただ，単にNULL…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fri.hateblo.jp%2Fentry%2F2012%2F07%2F10%2F005445&quot; title=&quot; new 演算子の例外 - リジェクトされました&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-07-10 00:54:45</published>
  <title> new 演算子の例外</title>
  <type>rich</type>
  <url>https://ri.hateblo.jp/entry/2012/07/10/005445</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
