{"categories":["C++","programming"],"description":"if \u306e\u5f0f\u306e\u4e2d\u3067\u5ba3\u8a00\u3057\u305f\u5909\u6570\u306f\u3001 else \u7bc0\u306e\u4e2d(\u3068\u3044\u3046\u8868\u73fe\u3067\u3044\u3044\u306e?)\u3067\u306f\u5b58\u5728\u3057\u3066\u306a\u3044\u306e\u304b\u3068\u601d\u3063\u305f\u3089\u2026\u2026\u3002>if(hoge* ptr = getPtr()) { cout << ptr->hoge(); } else { // \u3053\u306e\u30d6\u30ed\u30c3\u30af\u306b\u3082 ptr \u5909\u6570\u306f\u5b58\u5728\u3059\u308b }","url":"https://www.little-cuckoo.jp/entry/20060811/1155267093","height":"190","provider_url":"https://hatena.blog","title":"if \u6587\u306e\u5f0f\u306e\u4e2d\u3067\u5ba3\u8a00\u3057\u305f\u5909\u6570\u306e\u30b9\u30b3\u30fc\u30d7","blog_url":"https://www.little-cuckoo.jp/","author_url":"https://blog.hatena.ne.jp/wata_d/","blog_title":"\u9591\u53e4\u9ce5","width":"100%","type":"rich","provider_name":"Hatena Blog","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.little-cuckoo.jp%2Fentry%2F20060811%2F1155267093\" title=\"if \u6587\u306e\u5f0f\u306e\u4e2d\u3067\u5ba3\u8a00\u3057\u305f\u5909\u6570\u306e\u30b9\u30b3\u30fc\u30d7 - \u9591\u53e4\u9ce5\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","published":"2006-08-11 12:31:33","author_name":"wata_d"}