cpplinq new operators

There are some new operators available in cpplinq: singleton, generate, pairwise and zip_with. singleton This operator create a range with a single element, specified as argument. Using the operator is straight forward. auto result = singleton (42) >> to_vector (); // yields {42} generate This operator creates a range using a given predicate. auto x … Read more

2012 in Review

Here is an overview of the things that I’ve done in 2012. Codexpert Revamped The main site for the Romanian C++ community has a brand new, modern look (all built with HTML5), making things easier to find. We also now feature a blog in English, which is intended to replace the old article section. codexpert.ro … Read more

cpplinq: set operators

In the previous posts I introduced cpplinq, a C++ template library that provides .NET-like query operators for sequences of objects in C++11. In this third installment I will discuss the set operators the library provides. There are four set operators: distinct, union_with (called so because union is a keyword in C++), intersect_with (suffix _with is … Read more

cpplinq: range generators and conversion operators

In my previous post I introduced cpplinq, a C++ template library that provides .NET-like query operators for sequences of objects in C++11. In this second installment I will discuss about two things: range generators and range conversion operators. These two sets of operators are ubiquitous in queries. Range generators A range generator builds an object … Read more

cpplinq: An introduction

cpplinq is a C++ template library that provides .NET-like query operators for sequences of objects in C++11. cpplinq is an open-source library that works both with VC++ compilers (2010 and 2012) and gcc (4.7.0 is the version used for unit tests). The library supports most of the .NET query operators and is extendable with additional … Read more