Skip to main content

  | मौसम…

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

411 REFERENCE · Wikibooks

C++ Language/Std/Stl/Iterators/BasicIterators

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

An iterator is an object that reprsents a position within some collection class:void OutputVector(std::vector<int>& x) {  std::vector<int>::iterator piIter;  for (piIter = x.begin(); piIter != x.end(); ++piIter) {    int iVar = *piIter;    std::cout << iVar;  }} Additional information about basic iterators (includes interactive examples)