I have a the following code.
vector* irds = myotherobj->getIRDs();//gets a pointer to the vector for(vector::iterator it = ir
Dereference the iterator to get a reference to the underlying object.
vector* irds = myotherobj->getIRDs(); for(vector::iterator it = irds->begin(); it != irds->end(); ++it) { IRD& ird = *it; ird.doSomething(); // alternatively, it->doSomething(); }