What does "myMap.insert(std::make_pair(ID++, newData));" do? ...and thanks for all your help!
Type: Posts; User: miami_victor
What does "myMap.insert(std::make_pair(ID++, newData));" do? ...and thanks for all your help!
Can you show an example of how some of the objects in the MessageCont_t vector can be passed to the approriate corresponding data to the TrainCont_t map?
Here are my two containers. I have added comments within each...an attempt to show definitions of some of the data structures contained in each container. I hope this doesn't muddy the original...
Oh good...both containers are public. One is "map" the other "vector".
Your example is very clear to me. Both containers hold the same types of data...I don't know if that helps at all. What do you mean by "what kind of container" and "How are these containers...
I am new to C++ (this will become obvious) and wanted to know how I can pass data from one container to another container both of which are located in different classes? I don't have any code to show...