I have a custom map-like container with (integer index,value) pairs. Here is my iterator implementation for it:
// _v is a vector holding the data with next i