Comment

Comment by stephen_g

Yep, iterators are one of the most annoying things in C++. That's why I love range for in C++0x - instead of writing this, for example:

for(std::vector<std::string>::iterator it = vec.begin(); it != vec.end(); it++)

you can just do:

for(std::string x : vec)

So awesome!

parent stephen_g 15 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton