Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C++ Language/ProgramFlow/Loops/LoopingOverCollection

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Any STL collection that provides iterators via begin() and end() (e.g., std::vector<int> veciVar = {0,11,22,33};) can be iterated by for (int iItem : veciVar) { body }. Additional information about looping over a collection (includes interactive examples)