b***y 发帖数: 2799 | 1 ☆─────────────────────────────────────☆
cmsdkfz (heibao) 于 (Wed Apr 16 18:59:22 2008) 提到:
如果要求原来的顺序不能改变,那应该怎么做?
换句话说,stl里面的stable_partition是怎么实现的?
☆─────────────────────────────────────☆
thrust (WoW 无限期冬眠中) 于 (Wed Apr 16 19:41:33 2008) 提到:
template
BidirectionalIterator
stable_partition(BidirectionalIterator first,
BidirectionalIterator last, Predicate pred);
Effects:
Places all the elements in the r |
|