Updated 2011-10-31 – Major update based on boost range adaptors!!
A while ago I wrote up a little demo of using lambdas to implement convenient lazy list comprehension in C++0x, but at the time the VC++ compiler I was using lacked
decltype, and I found a need for it.
I just tried out the Beta 1 that was released this week, and it has
decltype, so here’s the updated sample: