Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
boolinq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
boolinq
Commits
6e526e36
Commit
6e526e36
authored
Jun 29, 2019
by
Anton Bukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove std::function
parent
ae3a0530
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
README.md
README.md
+6
-5
boolinq.h
include/boolinq/boolinq.h
+0
-0
ForeachTest.cpp
test/ForeachTest.cpp
+3
-3
No files found.
README.md
View file @
6e526e36
...
@@ -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()
...
...
include/boolinq/boolinq.h
View file @
6e526e36
This diff is collapsed.
Click to expand it.
test/ForeachTest.cpp
View file @
6e526e36
...
@@ -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
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment