M
Marcus
I have a vector within a vector within a map. The innermost vector
houses a struct with some ints and floats. The map keys off the
secondary vector which acts as a wrapper for multiple vector struct
entries for a specific key.
std::vector<Object> vec;
std::vector<std::vector <Object> > vecMain;
std::map<std::string,std::vector <std::vector <Object> > > map;
//Assuming I have loaded the vectors and map, how do I get at the vec
values if I have a key value?
std::map<std::string,std::vector <vector <Object> > >::iterator pos;
pos = map.find("abc");
if (pos != map.end()){
//...how should I handle the multiple loops here?
Any help would be very appreciated.
houses a struct with some ints and floats. The map keys off the
secondary vector which acts as a wrapper for multiple vector struct
entries for a specific key.
std::vector<Object> vec;
std::vector<std::vector <Object> > vecMain;
std::map<std::string,std::vector <std::vector <Object> > > map;
//Assuming I have loaded the vectors and map, how do I get at the vec
values if I have a key value?
std::map<std::string,std::vector <vector <Object> > >::iterator pos;
pos = map.find("abc");
if (pos != map.end()){
//...how should I handle the multiple loops here?
Any help would be very appreciated.