{"version":"1.0","height":"190","published":"2008-12-22 00:00:03","provider_url":"https://hatena.blog","image_url":null,"provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/winebarrel/","type":"rich","blog_url":"https://so-wh.at/","description":"\u7b2c\u4e00\u5f15\u6570\u306f\u300c\u5f15\u6570\u3092\uff12\u3064\u3068\u308b\u95a2\u6570\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u3002 \u6c4e\u7528\u7684\u3067\u306a\u3044\u306e\u306fplus\u3001minus\u3068\u304b\u306e\u30d8\u30eb\u30d1\u95a2\u6570\u3060\u304b\u3089\u304b\u306a\u3002 #include <iostream> #include <functional> using namespace std; int count(int m, int n) { return m * 2 + n; } int main() { cout << bind1st(ptr_fun(count), 3)(5) << endl; cout << bind2nd(ptr_fun(count), 3)(5) << endl; } 11 13","width":"100%","categories":["C++"],"title":" bind1st\u3001bind2nd","author_name":"winebarrel","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fso-wh.at%2Fentry%2F20081222%2Fp1\" title=\" bind1st\u3001bind2nd - so what\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://so-wh.at/entry/20081222/p1","blog_title":"so what"}