{"provider_name":"Hatena Blog","categories":["C++","boost"],"description":"boost::function \u306e\u5f15\u6570\u3092\u81ea\u7531\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u3002 #include <boost/function.hpp> #include <boost/functional.hpp> #include <boost/bind.hpp> int division(int n, int m){ return n / m; } int main(){ // \u3042\u3089\u304b\u3058\u3081\u5f15\u6570\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u308b boost::function<int()> div_6_3 = boost::bind(division, 6, 3); assert( div_6_3() == division(6, 3) )\u2026","author_url":"https://blog.hatena.ne.jp/osyo-manga/","height":"190","provider_url":"https://hatena.blog","title":"boost::bind","image_url":null,"version":"1.0","type":"rich","author_name":"osyo-manga","width":"100%","blog_url":"https://osyo-manga.hatenadiary.org/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fosyo-manga.hatenadiary.org%2Fentry%2F20100930%2F1285824749\" title=\"boost::bind - C++\u3067\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"C++\u3067\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","published":"2010-09-30 14:32:29","url":"https://osyo-manga.hatenadiary.org/entry/20100930/1285824749"}