fix recursion depth: lexicographical_compare

This commit is contained in:
bolero-MURAKAMI 2012-12-17 00:14:24 +09:00
parent 1c085cb707
commit 750e3b944d
4 changed files with 266 additions and 8 deletions

View file

@ -107,6 +107,13 @@ namespace sprout {
} // namespace detail
// 25.2.6 Find end
//
// recursion depth:
// [first1, last1) is RandomAccessIterator -> O(log N1)
// otherwise -> O(N1)
// [first2, last2) is RandomAccessIterator -> O(log N2)
// otherwise -> O(N2)
//
template<typename ForwardIterator1, typename ForwardIterator2, typename BinaryPredicate>
inline SPROUT_CONSTEXPR ForwardIterator1
find_end(