摘要: 第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& 阅读全文
posted @ 2012-12-11 18:17 轻典 阅读(280) 评论(0) 推荐(0) 编辑