-
Recent Posts
Recent Comments
Ron on Finding GUID “literals… concrt on Visual Studio : Options to bin… T# on Visual Studio : Options to bin… concrt on Using Lambdas instead of Funct… Gerardo on Using Lambdas instead of Funct… Archives
Categories
Meta
Monthly Archives: November 2009
parallel_for_each
Bonsoir, I modified the code from Integral with the Parallel Patterns Library so that it uses parallel_for_each() instead of parallel_for(): template <typename FN>double Integrate(FN fn,double from, double to, double dx) { if (from >= to) throw invalid_argument("’from’ … Continue reading
Posted in Computers and Internet
Leave a comment
R-Value references and std::forward
If you’ve watched STL’s excellent video about… Standard Template Library on Channel 9, you may be wondering why that forward<> template is needed. I did. To understand why, one needs a bit more understanding of R-Value References (&&). … Continue reading
Posted in Computers and Internet
Leave a comment
Integral with the Parallel Patterns Library
Played a bit with PPL this week-end. This helped me understand quite a bit more than what’s in the documentation thanks to the Visual Studio 2010’s Parallel Tasks and Parallel Stacks windows: #define _WIN32_WINNT 0x0601 #include <windows.h> #include <ppl.h> … Continue reading
Posted in Computers and Internet
Leave a comment