for (std::vector::iterator i = myArray.begin(); i != myArray.end(); i++) { process(&*i); }