C++ STL学习
和iterator有关: for_each(first_it,last_it,fun),用来做循环 binary_function,ptr_fun,用来适配全局函数 mem_fun用来适配类的成员函数 bind1st,bind2nd用来绑定参数 ostream_iterator copy(first_it,last_it,std::ostream_iterator (cout,"\n"));
和iterator有关: for_each(first_it,last_it,fun),用来做循环 binary_function,ptr_fun,用来适配全局函数 mem_fun用来适配类的成员函数 bind1st,bind2nd用来绑定参数 ostream_iterator copy(first_it,last_it,std::ostream_iterator (cout,"\n"));
暂无评论。
评论功能维护中,当前仅展示历史评论。