Warp wrote:
> I suppose the exact syntax has still not been written to stone. The
> current wikipedia article on the subject uses your syntax:
>
> http://en.wikipedia.org/wiki/C%2B%2B0x#Lambda_functions_and_expressions
>
It's not a feature I'm likely to use much, anyway. I'm more interested in
the range-based for loop (yes, I know it's pure syntax sugar), and template
concepts.
Currently:
for (std::vector<int>::iterator i = myList.begin(); i != myList.end(); ++i)
With the new type determination feature:
for (auto i = myList.begin(); i != myList.end(); ++i)
With the range-based for loop:
for (int &x : myList)
<3
Post a reply to this message
|