james075 / Linq-Cpp14

C++14 Linq, use a simple way to run on data using helpful queries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linq

Fast and Simplified C#.Net Linq for C++ !

Install

1 - GCC/Clang

  • add Options -std=c++14 and -I"YourPath"/include to your compilation

2 - Visual Studio

  • Go to your Project "Properties" -> "C/C++" -> "General"
  • Add "include" folder path in section "Additional Include Directories" e.g: $(SolutionDir)\include
  • Go to your Project "Properties" -> "C/C++" -> "Language"
  • Select ISO C++14 in section "C++ Language Standard"

Run Tests

Linux

  $> make && make run

Windows

  • Create a new project
  • Follow the installation steps
  • Add overhead.cpp to your project
  • Compile and run :)

Usage

  #include "linq/linq.h"

Supported operations

  • All
  • Select
  • SelectMany
  • Where
  • OrderBy
  • GroupBy
  • Skip, SkipWhile
  • Take, TakeWhile
  • Count, Any
  • Sum, Min, Max

Todo

  • Range
  • Single, Last
  • Concat
  • Distinct, Union, Intersect, Except
  • Contains

About

C++14 Linq, use a simple way to run on data using helpful queries

License:MIT License


Languages

Language:C++ 98.6%Language:Makefile 1.4%