fix recursion depth: all algorithms

This commit is contained in:
bolero-MURAKAMI 2013-01-12 03:41:13 +09:00
parent cb584edb3f
commit 84508d6a6c
18 changed files with 781 additions and 76 deletions

View file

@ -11,8 +11,7 @@ namespace sprout {
// is_increasing
//
// recursion depth:
// [first, last) is RandomAccessIterator -> O(log N)
// otherwise -> O(N)
// O(log N)
//
template<typename ForwardIterator>
inline SPROUT_CONSTEXPR bool