{"version":"1.0","type":"rich","provider_url":"https://hatena.blog","categories":["c/c++"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fisoparametric.hatenablog.com%2Fentry%2F20071027%2F1193461597\" title=\"\u6f14\u7b97\u5b50\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\uff1f\u3000\u6f14\u7b97\u5b50\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\uff1f - \u795e\u69d8\u306a\u3093\u3066\u4fe1\u3058\u306a\u3044\u50d5\u3089\u306e\u305f\u3081\u306b\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","image_url":null,"description":"\u4f1a\u793e\u3067\u3053\u308c\u3063\u3066\u9593\u9055\u3044\u3084\u3059\u3044\u3088\u306d\u3001 \u7d50\u5c40\u3069\u3063\u3061\u306a\u306e\uff1f \u307f\u305f\u3044\u306a\u611f\u3058\u3067\u8a0a\u304b\u308c\u305f\u308a\u3057\u305f\u306e\u3067\u3001 \u5b9f\u4f8b\u3092\u4ea4\u3048\u3066\u30a8\u30f3\u30c8\u30ea\u3057\u3066\u307f\u308b\u3002 \u4f8b\u3068\u3057\u3066\u6f14\u7b97\u5b50+=\u3092\u6301\u3061\u51fa\u3059\u3002 class Foo { public: Foo(int value) : value_(value) { } Foo& operator +=(const Foo& f) { value_ += f.value_; return *this; } int getValue() const { return value_; } private: int value_; }; \u3068\u3044\u3046\u30af\u30e9\u30b9\u304c\u3042\u308b\u3002 +=\u6f14\u7b97\u5b50\u3092\u5b9a\u7fa9\u3057\u3066\u3042\u308b\u3002 Foo f(100);\u2026","provider_name":"Hatena Blog","published":"2007-10-27 14:06:37","author_name":"Isoparametric","height":"190","author_url":"https://blog.hatena.ne.jp/Isoparametric/","blog_title":"\u795e\u69d8\u306a\u3093\u3066\u4fe1\u3058\u306a\u3044\u50d5\u3089\u306e\u305f\u3081\u306b","title":"\u6f14\u7b97\u5b50\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\uff1f\u3000\u6f14\u7b97\u5b50\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\uff1f","blog_url":"https://isoparametric.hatenablog.com/","url":"https://isoparametric.hatenablog.com/entry/20071027/1193461597"}