Skip to content

farnyser/linq-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linq C++

Yet another Simplified Linq for C++ !

Example

struct Point { int x; int y }
std::vector<Point> 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

About

LINQ-Like API in C++

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published