mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-04 14:14:09 +00:00
fix non-modifying algorithm: for InputIterator Requirements
This commit is contained in:
parent
3800b22a22
commit
4e4c1b1786
5 changed files with 9 additions and 5 deletions
|
@ -82,7 +82,7 @@ namespace sprout {
|
|||
typedef sprout::pair<InputIterator, typename std::iterator_traits<InputIterator>::difference_type> type;
|
||||
return current.second > 1 || current.first == last ? current
|
||||
: n == 1 ? current.second == 0
|
||||
? type(sprout::next(current.first), pred(*current.first) ? 1 : 0)
|
||||
? !pred(*current.first) ? type(sprout::next(current.first), 0) : type(sprout::next(current.first), 1)
|
||||
: !pred(*current.first) ? type(sprout::next(current.first), 1) : type(current.first, 2)
|
||||
: sprout::detail::one_of_impl_1(
|
||||
sprout::detail::one_of_impl_1(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue