Commit 6e526e36 authored by Anton Bukov's avatar Anton Bukov

Remove std::function

parent ae3a0530
......@@ -89,6 +89,7 @@ int DenisUniqueContactCount =
#### Today:
- cast<T>()
- take(int)
- takeWhile(int)
- takeWhile_i(int)
......@@ -100,13 +101,17 @@ int DenisUniqueContactCount =
- where_i(lambda)
- select(lambda)
- select_i(lambda)
- selectMany(lambda)
- reverse()
- orderBy()
- orderBy(lambda)
- distinct()
- distinct(lambda)
- groupBy(lambda)
- selectMany(lambda)
- for_each(lambda)
- for_each_i(lambda)
- all()
- all(lambda)
- any()
......@@ -127,10 +132,6 @@ int DenisUniqueContactCount =
- toStdDeque()
- toStdVector()
#### Coming soon:
- groupBy(lambda)
#### Custom:
- bytes()
......
This diff is collapsed.
......@@ -16,7 +16,7 @@ TEST(ForEach, ThreeCharsSum)
src.push_back('c');
std::string str = "";
from(src).foreach([&](char a){str += a;});
from(src).for_each([&](char a){str += a;});
EXPECT_EQ("abc", str);
}
......@@ -29,7 +29,7 @@ TEST(ForEach, ThreeCharsUpperSum)
src.push_back('c');
std::string str = "";
from(src).foreach([&](char a){str += a + ('A' - 'a');});
from(src).for_each([&](char a){str += a + ('A' - 'a');});
EXPECT_EQ("ABC", str);
}
......@@ -42,7 +42,7 @@ TEST(ForEach, ThreeIntsSum)
src.push_back(30);
int sum = 0;
from(src).foreach([&](int a){sum += a;});
from(src).for_each([&](int a){sum += a;});
EXPECT_EQ(60, sum);
}
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