摘要: STL算法学习,小结如下:前提: 下载stl源码: http://www.sgi.com/tech/stl/download.html打开网页: http://www.sgi.com/tech/stl/stl_index.html一 函数对象: 因为很多的算法中多使用了函数对象 二元函数对象,V1和V2为输入,V3为结果plusT: transform(V1.begin(), V1.end(), V2.begin(), V3.begin(),plusdouble());其他的二元函数对象:minus,multiples,divieds,modulus.二元断言函数对象,使用时需要bin 阅读全文
posted @ 2010-12-10 14:39 月之子 阅读(386) 评论(0) 推荐(0) 编辑