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
a32c5293
Unverified
Commit
a32c5293
authored
Oct 31, 2017
by
Anton Bukov
Committed by
GitHub
Oct 31, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #23 from k06a/k06a-patch-1
Update README.md
parents
1468eff8
af1b9aa8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
README.md
README.md
+11
-11
No files found.
README.md
View file @
a32c5293
#boolinq 2.0
#
boolinq 2.0
[
![CI Status
](
https://travis-ci.org/k06a/boolinq.svg?branch=master
)
](https://travis-ci.org/k06a/boolinq)
[
![Coverage Status
](
https://coveralls.io/repos/github/k06a/boolinq/badge.svg?branch=master
)
](https://coveralls.io/github/k06a/boolinq?branch=master)
...
...
@@ -9,9 +9,9 @@ Just imagine LINQ support for STL/Qt collections :)
Get source code here:
**[boolinq.h](/include/boolinq/boolinq.h)**
###How it looks like?
###
How it looks like?
####Example with integers
####
Example with integers
```
c++
int
src
[]
=
{
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
};
...
...
@@ -24,7 +24,7 @@ auto dst = from(src).where( [](int a){return a%2 == 1;}) // 1,3,5,7
// dst items: 6,10
```
####Example with structs
####
Example with structs
```
c++
struct
Man
...
...
@@ -51,7 +51,7 @@ auto dst = from(src).where( [](const Man & man){return man.age < 18;})
// dst items: "Kevin", "Layer", "Agata"
```
####Interesting example
####
Interesting example
```
c++
struct
Message
...
...
@@ -78,15 +78,15 @@ int DenisUniqueContactCount =
// DenisUniqueContactCount == 2
```
###Containers supported?
###
Containers supported?
-
C++: Native arrays, pairs of pointers
-
STL: list, stack, queue, vector, deque, set, map, any compatible ....
-
Qt: QList, QVector, QSet, QMap.
###Operators supported?
###
Operators supported?
####Today:
####
Today:
-
cast
<
T
>
()
-
take(int)
...
...
@@ -123,7 +123,7 @@ int DenisUniqueContactCount =
-
toVector()
-
toContainer
<
T
>
()
####Custom:
####
Custom:
-
bytes()
-
bytes
<
ByteOrder
>
()
...
...
@@ -138,11 +138,11 @@ int DenisUniqueContactCount =
-
unbits
<
T,BitOrder
>
()
-
unbits
<
T,BitOrder,ByteOrder
>
()
####Coming soon:
####
Coming soon:
-
selectMany(lambda)
####May be will be:
####
May be will be:
-
gz()
-
ungz()
...
...
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