{"author_name":"tmyt","blog_url":"https://blog.tmyt.jp/","provider_url":"https://hatena.blog","blog_title":"tmyt\u306e\u3089\u304f\u304c\u304d","type":"rich","categories":["\u96d1\u8a18"],"provider_name":"Hatena Blog","version":"1.0","author_url":"https://blog.hatena.ne.jp/tmyt/","url":"https://blog.tmyt.jp/entry/20090328/1238264155","published":"2009-03-28 03:15:55","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.tmyt.jp%2Fentry%2F20090328%2F1238264155\" title=\"tr1\u3092\u307b\u3052\u307b\u3052 - tmyt\u306e\u3089\u304f\u304c\u304d\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u5148\u8f29\u306bstd::tr1::function\u3068std::tr1::bind\u306e\u4f7f\u3044\u65b9\u3092\u6559\u3048\u3066\u3082\u3089\u3063\u305f\u306e\u3067\u3081\u3082\u3081\u3082\u3002 #include <functional> #include <iostream> class classA { public: int neg(int n) { return -n; } }; class classB { private: std::tr1::function<int(int)> m_func; public: void set(classA* a) { m_func = std::tr1::bind(&classA::neg, a, std::tr1::plac\u2026","image_url":null,"title":"tr1\u3092\u307b\u3052\u307b\u3052","height":"190","width":"100%"}