I have a class which has a std::vector of child control pointer. For obvious reasons, I do not want the user of the class to have direct access to the std::vector. All I would want is a way to give the caller the pointers. What would be a good OO way to do this? (this function will be called often)
Thanks
Provide a function that returns a
const_iteratorto the vector. It is also useful to add one to return the iterator to the end of the vector.