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

Remove std::function

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