#Differences between loops

7 messages · Page 1 of 1 (latest)

sage pumiceBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

#

@wooden cradle

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. You can use !solved to close a post and mark it as solved.

past sundial
#

It would be *it because that gives the element instead of an iterator

#

There’s also a range-based for loop
for (auto i : vec)

wooden cradle
#

Alright, thank you very much! I'll give that a go. What term am I missing?

dusk patrol
past sundial
#

No