Having been tainted by Linq, I\'m reluctant to give it up. However, for some things I just need to use C++.
The real strength of linq as a linq-consumer (i.e. to me) li
With Boost.Range and Linq in C++11, you can write Linq queries in a very similar way:
std::vector numbers = { 1, 2, 3, 4 }; auto r = LINQ(from(x, numbers) where(x > 2) select(x * x)); for (auto x : r) printf("%i\n", x);
Will output:
9 16