Top "Iterator" questions

An iterator is an object-oriented programming pattern that allows traversal through a collection, agnostic of the actual implementation or object addresses in physical memory.

Boost Property_Tree iterators, how to handle them?

I am sorry, I asked a question about the same topic before, but my problem concerns another aspect of the …

c++ iterator boost-propertytree
How to remove constness of const_iterator?

As an extension to this question Are const_iterators faster?, I have another question on const_iterators. How to remove …

c++ stl iterator const-iterator
How can I detect the last iteration in a loop over std::map?

I'm trying to figure out the best way to determine whether I'm in the last iteration of a loop over …

c++ stl iterator maps
Does std::map::iterator return a copy of value or a value itself?

I'm trying to create a map inside a map: typedef map<float,mytype> inner_map; typedef map<…

c++ iterator stdmap
Struts 2 nesting iterators

I can't believe how something this simple can seem so hard to do in Struts 2. This is approximately what I …

jsp struts2 iterator nested ognl
Creating 2D coordinates map in Python

I'm not looking for solution, I'm looking for a better solution or just a different way to do this by …

python iterator coordinates
round robin scheduling java iterators

I have a list of hosts in an array which represnt the servers available to do a particular job. Currently …

java scheduling iterator
Address of the pointed element whatever the iterator type/pointer is passed

What would be the most generic syntax for the following function : template<IteratorType> void myFunction(const IteratorType& …

c++ pointers iterator object-address
Is there a Java equivalent of Python's 'enumerate' function?

In Python, the enumerate function allows you to iterate over a sequence of (index, value) pairs. For example: >>&…

java python iterator
How do I create a Vec from a range and shuffle it?

I have the following code: extern crate rand; use rand::{thread_rng, Rng}; fn main() { let mut vec: Vec<…

iterator immutability rust mutability