Commit a42067d7 authored by Anton Bukov's avatar Anton Bukov

Merge pull request #3 from jell0nek/master

skipWhile_i improvements
parents 84617bbb 5a1c6f99
...@@ -19,8 +19,6 @@ TEST(SkipWhileRange, ManyToMore) ...@@ -19,8 +19,6 @@ TEST(SkipWhileRange, ManyToMore)
auto rng = from(src); auto rng = from(src);
auto dst = rng.skipWhile([](int it){return it < 0 || it > 10;}); auto dst = rng.skipWhile([](int it){return it < 0 || it > 10;});
auto vec = dst.toVector();
CheckRangeEqArray(dst, ans); CheckRangeEqArray(dst, ans);
} }
......
...@@ -200,6 +200,7 @@ namespace boolinq ...@@ -200,6 +200,7 @@ namespace boolinq
do do
object = pair.first.nextObject(); object = pair.first.nextObject();
while (predicate(object,pair.second++)); while (predicate(object,pair.second++));
return object; return object;
}, std::make_pair(_enumerator,0)); }, std::make_pair(_enumerator,0));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment