很多STL algorithm都是_if結尾的,讓我們可以帶function進去,若配合function object,可讓function更有彈性!!
以下的範例想利用count_if() algorithm得知vector大於n的有幾個?
執行結果
posted on 2009-12-21 23:59 Carlward 阅读(369) 评论(0) 编辑 收藏 引用 所属分类: STL
Powered by: C++博客 Copyright © Carlward