Why not indeed. I cannot believe that I never thought of that. I will sheepishly go back to what I had been doing before I interupted this forum. Augh!!!!
dustfinger.
Type: Posts; User: dustfinger
Why not indeed. I cannot believe that I never thought of that. I will sheepishly go back to what I had been doing before I interupted this forum. Augh!!!!
dustfinger.
Oops. I did not mean to write getMap is a member of ObjMap. This is what I really meant:
The code in question is being called from ObjNoMap. I want read only access to a very large map that...
One problem with returning a const_iterator is that I will not know when I am at the end of the map. I could write a function that takes a reference to a const_iterator, which will be set to the end...
Suppose that I have an object that has a very large map. Consider now, another object that wishes to iterate through every item in the map owned by the first object. Lets name these two objects,...