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"));

你可能感兴趣的:(c++,STL,for_each)