C++拾遗--bind函数绑定
前言函数绑定bind函数用于把某种形式的参数列表与已知的函数进行绑定,形成新的函数。这种更改已有函数调用模式的做法,就叫函数绑定。需要指出:bind就是函数适配器。bind函数实例#include <iostream>#include <functional>using namespace std;using namespace std::placeholders;int main(){auto fun = [](int *arra...