Sunday, February 22, 2009

Visual C++ 2010 and Parallel Patterns Library

Found an introduction article for Visual C++ 2010

http://msdn.microsoft.com/en-us/magazine/dd434652.aspx

1. Inclusion of TR1 to C++ Standard Library, including the support of function objects through the use of "bind"

2. Suppport for "auto" keyword, to avoid explicitly defining the type of variable (because the type is either very hard to define or complicated to express)

3. Support for lambda expressions to define unnamed function objects (also called "closures")

Example: auto f = [](int x, int y) { return x + y; };

No comments:

Post a Comment