What are Iterators, C++?

前端 未结 5 394
孤城傲影
孤城傲影 2020-12-16 12:09

What are Iterators in C++?

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-16 12:54

    http://en.wikipedia.org/wiki/Iterator

    Something that lets you go through everything in an array, one by one.

    In c++, i think you're talking about "for_each" ... As far as I know, C++ doesn't actually have "foreach" unlike languages like C#. However, the standard template library has it.

提交回复
热议问题