{"type":"rich","published":"2009-01-24 23:20:23","provider_name":"Hatena Blog","height":"190","blog_url":"https://xyuyux.hatenadiary.org/","blog_title":"xyuyux\u306e\u65e5\u8a18","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxyuyux.hatenadiary.org%2Fentry%2F20090124%2F1232806823\" title=\"\u7d9a)\u30e1\u30f3\u30d0\u30fc\u95a2\u6570\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u7279\u6b8a\u5316 - xyuyux\u306e\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>","title":"\u7d9a)\u30e1\u30f3\u30d0\u30fc\u95a2\u6570\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u7279\u6b8a\u5316","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/xyuyux/","description":"\u7d50\u5c40main\u5074\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u5909\u3048\u305a\u306b\u3069\u3046\u5b9f\u88c5\u3059\u308b\u304b\u306b\u7740\u76ee\u3057\u305f\u7d50\u679c\u3053\u3046\u306a\u3063\u305f\u3002 #include #include #include // Widget\u306efoo\u304b\u3089\u547c\u3070\u308c\u308b\u95a2\u6570\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308b template struct widget_foo { T operator ()(int i) { T tmp; std::stringstream ss; ss ss >> tmp; return tmp; } };// int\u306b\u7279\u6b8a\u5316\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3 template <> struct widget_foo { int operator ()(int i) { return ++i; } }\u2026","categories":["C++"],"author_name":"xyuyux","image_url":null,"version":"1.0","url":"https://xyuyux.hatenadiary.org/entry/20090124/1232806823"}