摘要:
第11章 函数回调#include <iostream>#include <boost/assign.hpp>#include <boost/ref.hpp>#include <boost/typeof/typeof.hpp>struct Ope{ void operator()(int& x){x = x*x;}};struct Print{ void operator()(int x){std::cout<<x<<"\t";}};int main(){ std::vector<int& 阅读全文