mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-04 14:14:09 +00:00
fix recursion depth: lexicographical_compare
This commit is contained in:
parent
1c085cb707
commit
750e3b944d
4 changed files with 266 additions and 8 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue