{"width":"100%","blog_title":"\u30b2\u30fc\u30e0\u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u304c\u3093\u3070\u308b\u65e5\u8a18","description":"C++\u3067new\u306b\u5931\u6557\u3057\u305f\u3068\u304d\u306f\u4f8b\u5916\u304c\u6295\u5165\u3055\u308c\u308b\u304c\u3001NULL\u3092\u8fd4\u3059\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002 \u30dd\u30a4\u30f3\u30bf\u5909\u6570 = new(nothrow) \u578b;nothrow\u3092\u4ed8\u3051\u308c\u3070\u4f8b\u5916\u3067\u306f\u306a\u304fNULL\u3092\u8fd4\u3059\u3088\u3046\u306b\u306a\u308b\u3002 #include <iostream> using namespace std; void main() { int* p; for(int i=0; i<1000; i++) { p = new(nothrow) int[100000000]; if (!p) return; cout << p << endl; } }","published":"2009-02-08 00:16:22","provider_name":"Hatena Blog","image_url":null,"author_name":"toburau","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F20090208%2F1234106182\" title=\"new\u306b\u5931\u6557\u3057\u305f\u3068\u304dNULL\u3092\u8fd4\u3059 - \u30b2\u30fc\u30e0\u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u304c\u3093\u3070\u308b\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://toburau.hatenablog.jp/","provider_url":"https://hatena.blog","url":"https://toburau.hatenablog.jp/entry/20090208/1234106182","author_url":"https://blog.hatena.ne.jp/toburau/","type":"rich","title":"new\u306b\u5931\u6557\u3057\u305f\u3068\u304dNULL\u3092\u8fd4\u3059","categories":["C++"],"version":"1.0","height":"190"}