快速排序[from 维基百科]
<br />#include <functional>
#include <algorithm>
#include <iterator>
template< typename BidirectionalIterator, typename Compare >
void quick_sort( BidirectionalIterator first, BidirectionalIterator last, Compare cmp ) {
if( first != last ) {
转载
2011-05-05 14:14:00 ·
642 阅读 ·
0 评论