Currently browsing tag

c++11

Nifty iterators

Couple of different ways of iterating over collections: The long way With template functions c++11 lambdas Or just over a collection Of these, the first one frustrates me sometimes since you need to know what type of collection you’re iterating over. Thankfully c++11 introduced type inference with the auto keyword. …