{"provider_name":"Hatena Blog","published":"2006-10-13 21:39:05","author_name":"haru-s","height":"190","image_url":null,"url":"https://haru-s.hatenablog.com/entry/20061013/1160743145","author_url":"https://blog.hatena.ne.jp/haru-s/","blog_title":"...ing logging 4.0","width":"100%","description":"boost::function \u3068 boost::bind \u3092\u4f7f\u3048\u3070\u3067\u304d\u308b\u3068\u306f\u805e\u3044\u3066\u3044\u305f\u3051\u3069\uff0c\u3053\u308c\u306f\u9762\u767d\u3044\u306a\u30fc\uff0e \u3055\u3089\u306b boost::ref \u3092\u4f7f\u3048\u3070 Closure \u306e\u4e2d\u304b\u3089\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u306e\u304b\u30fc\uff0e \u3053\u3046\u306a\u308b\u3068\u95a2\u6570\u30ea\u30c6\u30e9\u30eb\u3092\u66f8\u304d\u305f\u304f\u306a\u308b\u306e\u304c\u4eba\u306e\u5fc3\u3068\u3044\u3075\u3082\u306e\u3088\uff0e #include <iostream> #include <boost/function.hpp> #include <boost/bind.hpp> class A { public: int add(int a, int b) { return a + b; } void times2(int& x) { x *= 2; \u2026","version":"1.0","blog_url":"https://haru-s.hatenablog.com/","title":" Closure \u3082\u3069\u304d","type":"rich","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharu-s.hatenablog.com%2Fentry%2F20061013%2F1160743145\" title=\" Closure \u3082\u3069\u304d - ...ing logging 4.0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["C++"]}