coveo::linq
Implementation of .NET-like LINQ operators in C++
|
Welcome to the documentation of the coveo::linq
library. This library implements .NET-like LINQ operators in C++. These can be chained to build powerful expressions to query, filter and transform data in any type of sequence, like arrays, containers, etc. (anything that supports std::begin()
and std::end()
should work).
If this is your first time with the library, start at LINQ expressions.
Here is an example that chains many operators to produce a filtered, ordered sequence:
coveo::linq::operator|()
is used to chain together the various LINQ operators, and coveo::linq::from()
is used as the entry point of the expression, providing the initial sequence on which operators will be applied. The sequence is then transformed by each operator, and the result is passed to the next operator.
The coveo::linq
library is header-only. Therefore, it is not necessary to "build" it to use. Simply copy the lib
directory with all its files to a suitable place and add it to your project's include path.
The library requires C++11 support. Several compilers meet that requirements, including the following (as tested by Continuous Integration):
Need help with the library? Found a bug? Please visit the coveo::linq
GitHub project page at:
There, you can file issues with questions or problems.