the patterns used in iterators

I am familiar with the usage of C++ STL iterators, e.g. for(map>::iterator it=m.begin(); it!=m.end(); ++it) int a = it->first; int b = it->second; But I don't know the inner details in it. Could some explain to me? Either in C++, Java, C# or Python.
Iterator concepts differ in C++ and Java/C#. In both cases they are incrementable and dereferenceable objects, but the set of operations and the usage differ.

以上就是the patterns used in iterators的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准