摘要:
一:STL预定义函数配接器的使用STL预定义的函数配接器 1. bind1st(op, value) 2. bind2st(op, value) 3. not1(param) 4. not2(param1,param2) 函数配接器可以将仿函数和另一个仿函数结合起来。函数配接器本身也是仿函数。二元函数配接器示例: find_if( coll.begin(), coll.end(), bind2nd(greater(),42) );以上例句中,bind2nd将仿函数greater()和第二个参数整型数42结合起来,查找条件就变成了“大于42”。其中greater为ST... 阅读全文
posted @ 2013-08-08 00:03
inary
阅读(417)
评论(0)
推荐(0)
浙公网安备 33010602011771号