In my design, I have a class that is basically the front for std::vector<OtherClass> . Should I pass a std::iterator to any caller in my class interface, pass a link to the entire vector or provide a set of functions to access the contents of my vector ? Or do you come up to him?
Additional information: Elements in the container will be installed during initialization and will not be added if the program is working normally. The clients of my class often execute queries and change the state of OtherClass elements, although not critically.
c ++ design abstraction standard-library
Harald hansen
source share