摘要: 1: template inline 2: void sort(_RanIt _First, _RanIt _Last) 3: { // order [_First, _Last), using operator inline 4: void _Sort(_RanIt _First, _RanIt _Last, _Diff _Ideal, _Pr _Pr... 阅读全文
posted @ 2013-12-23 17:06 Daniel King 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 1: template 2: ForwardIterator unique (ForwardIterator first, ForwardIterator last) 3: { 4: if (first==last) 5: return last; 6: 7: ForwardIterator result = first; 8: w... 阅读全文
posted @ 2013-12-23 15:27 Daniel King 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 1: template 2: OutputIterator set_difference (InputIterator1 first1, InputIterator1 last1, 3: InputIterator2 first2, InputIterator2 last2, 4: ... 阅读全文
posted @ 2013-12-23 15:22 Daniel King 阅读(541) 评论(0) 推荐(0) 编辑