摘要: STL中的equal函数:template<class InputIterator1, class InputIterator2> bool equal( InputIterator1 _First1, InputIterator1 _Last1, InputIterator2 _First2 );template<class InputIterator1, class InputIterator2, class BinaryPredicate> bool equal( InputIterator1 _First1, I... 阅读全文
posted @ 2012-06-10 15:06 cchun 阅读(2058) 评论(0) 推荐(0) 编辑
摘要: C++之lexicographical_comparelexicographical_compare: C++ STL 泛型算法函数:用于按字典序比较两个序列。函数申明:/**重载1如果[first1, last1)按字典序列小于[first2, last2),返回true,否则返回false。*/template <class InputIterator1, class InputIterator2 >bool lexicographical_compare( InputIterator1 first1, InputIterator1 last1, InputIterator2 阅读全文
posted @ 2012-06-10 15:01 cchun 阅读(746) 评论(0) 推荐(0) 编辑