Unverified Commit a32c5293 authored by Anton Bukov's avatar Anton Bukov Committed by GitHub

Merge pull request #23 from k06a/k06a-patch-1

Update README.md
parents 1468eff8 af1b9aa8
#boolinq 2.0 # boolinq 2.0
[![CI Status](https://travis-ci.org/k06a/boolinq.svg?branch=master)](https://travis-ci.org/k06a/boolinq) [![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) [![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 :) ...@@ -9,9 +9,9 @@ Just imagine LINQ support for STL/Qt collections :)
Get source code here: **[boolinq.h](/include/boolinq/boolinq.h)** 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++ ```c++
int src[] = {1,2,3,4,5,6,7,8}; 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 ...@@ -24,7 +24,7 @@ auto dst = from(src).where( [](int a){return a%2 == 1;}) // 1,3,5,7
// dst items: 6,10 // dst items: 6,10
``` ```
####Example with structs #### Example with structs
```c++ ```c++
struct Man struct Man
...@@ -51,7 +51,7 @@ auto dst = from(src).where( [](const Man & man){return man.age < 18;}) ...@@ -51,7 +51,7 @@ auto dst = from(src).where( [](const Man & man){return man.age < 18;})
// dst items: "Kevin", "Layer", "Agata" // dst items: "Kevin", "Layer", "Agata"
``` ```
####Interesting example #### Interesting example
```c++ ```c++
struct Message struct Message
...@@ -78,15 +78,15 @@ int DenisUniqueContactCount = ...@@ -78,15 +78,15 @@ int DenisUniqueContactCount =
// DenisUniqueContactCount == 2 // DenisUniqueContactCount == 2
``` ```
###Containers supported? ### Containers supported?
- C++: Native arrays, pairs of pointers - C++: Native arrays, pairs of pointers
- STL: list, stack, queue, vector, deque, set, map, any compatible .... - STL: list, stack, queue, vector, deque, set, map, any compatible ....
- Qt: QList, QVector, QSet, QMap. - Qt: QList, QVector, QSet, QMap.
###Operators supported? ### Operators supported?
####Today: #### Today:
- cast&lt;T&gt;() - cast&lt;T&gt;()
- take(int) - take(int)
...@@ -123,7 +123,7 @@ int DenisUniqueContactCount = ...@@ -123,7 +123,7 @@ int DenisUniqueContactCount =
- toVector() - toVector()
- toContainer&lt;T&gt;() - toContainer&lt;T&gt;()
####Custom: #### Custom:
- bytes() - bytes()
- bytes&lt;ByteOrder&gt;() - bytes&lt;ByteOrder&gt;()
...@@ -138,11 +138,11 @@ int DenisUniqueContactCount = ...@@ -138,11 +138,11 @@ int DenisUniqueContactCount =
- unbits&lt;T,BitOrder&gt;() - unbits&lt;T,BitOrder&gt;()
- unbits&lt;T,BitOrder,ByteOrder&gt;() - unbits&lt;T,BitOrder,ByteOrder&gt;()
####Coming soon: #### Coming soon:
- selectMany(lambda) - selectMany(lambda)
####May be will be: #### May be will be:
- gz() - gz()
- ungz() - ungz()
......
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