diff --git a/README.md b/README.md index e96dd9c6a2a16f7b037c7316f39939f1d10856ed..c1a72df26e48ceb49c7b52fc2bcd5f736c23a381 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,17 @@ boolinq 2.0 ======= -C++ header-only Ranges and LINQ template library +C++ single-file header-only Ranges and LINQ template library Just imagine LINQ support for STL/Qt collections :) -Get source code here: **[boolinq.h](https://github.com/k06a/boolinq/blob/master/include/boolinq/boolinq.h)** +Get source code here: **[boolinq.h](/include/boolinq/boolinq.h)** ###How it looks like? ####Example with integers -``` +```c++ int src[] = {1,2,3,4,5,6,7,8}; auto dst = from(src).where( [](int a){return a%2 == 1;}) // 1,3,5,7 .select([](int a){return a*2;}) // 2,6,10,14 @@ -24,7 +24,7 @@ auto dst = from(src).where( [](int a){return a%2 == 1;}) // 1,3,5,7 ####Example with structs -``` +```c++ struct Man { std::string name; @@ -51,7 +51,7 @@ auto dst = from(src).where( [](const Man & man){return man.age < 18;}) ####Interesting example -``` +```c++ struct Message { std::string PhoneA; @@ -86,7 +86,7 @@ int DenisUniqueContactCount = ####Today: -- cast<T>() +- cast<T>() - take(int) - skip(int) - concat(range) @@ -119,22 +119,22 @@ int DenisUniqueContactCount = - toList() - toDeque() - toVector() -- toContainer<T>() +- toContainer<T>() ####Custom: - bytes() -- bytes<ByteOrder>() -- unbytes<T>() -- unbytes<T,ByteOrder>() +- bytes<ByteOrder>() +- unbytes<T>() +- unbytes<T,ByteOrder>() - bits() -- bits<BitOrder>() -- bits<BitOrder,ByteOrder>() +- bits<BitOrder>() +- bits<BitOrder,ByteOrder>() - unbits() -- unbits<BitOrder>() -- unbits<T>() -- unbits<T,BitOrder>() -- unbits<T,BitOrder,ByteOrder>() +- unbits<BitOrder>() +- unbits<T>() +- unbits<T,BitOrder>() +- unbits<T,BitOrder,ByteOrder>() ####Coming soon: