Comment

Comment by tonmoy

I used to write

    for(map<int, vector<vector<int> > >::iterator it=m.being(); it != m.end(); it++)

        for(vector<vector<int> >::iterator it2 = it->second.begin(); it2 != it->second.end(); it2++) 


Now I have to write

    for (auto paths : m) {

        for (auto path : paths) {


Sure clang annoys me with not being able to compile with -g, but still auto is a lifesaver!
parent tonmoy 9 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton