2 ms·
Like everything in life, it has to be used in moderation. auto it = data.begin(); Is a lot more readable than std::vector<std::pair<std::vector<foo>, int>::i
by fooker 2y ago
Like everything in life, it has to be used in moderation.
auto it = data.begin();
Is a lot more readable than
std::vector<std::pair<std::vector<foo>, int>::iterator it = ....
- gigatexal 2y agoOh boy! A vector of tuples of vectors and ints? Crazy
- fooker 2y agoNesting standard library containers can get you neat data structures without much work
- junon 2y agoI don't know why I feel the urge to point this out but you missed an angle bracket :D
- fooker 2y agoThat's exactly why I'd use auto here!