https://github.com/farnyser/linq-cpp
LINQ-Like API in C++
https://github.com/farnyser/linq-cpp
cpp cpp14 linq
Last synced: 7 months ago
JSON representation
LINQ-Like API in C++
- Host: GitHub
- URL: https://github.com/farnyser/linq-cpp
- Owner: farnyser
- Created: 2017-03-06T20:32:25.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-29T16:05:35.000Z (over 8 years ago)
- Last Synced: 2025-04-06T22:38:50.003Z (about 1 year ago)
- Topics: cpp, cpp14, linq
- Language: C++
- Homepage:
- Size: 44.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Linq C++
========
Yet another Simplified Linq for C++ !
Example
-------
```c++
struct Point { int x; int y }
std::vector source = GetAllPointsInRange();
// find point with max X coordinate having Y coordinate lower than 1.0
auto p = AdaptView(source)
.Where([](const auto& p) { return p.y < 1.0; })
.Max([](const auto& p) { return p.x; });
```
Supported operations
--------------------
* Range
* Where, Skip, SkipWhile, Take, TakeWhile
* Select
* GroupBy
* First, Last, Single, Min, Max
* Count, Sum
* Concat, Union, Distinct, Intersect, Except
* Any, All, Contains
What's next
------------
* SelectMany
* OrderBy, OrderByDescending
* ToMap