How to convert c++ std::list element to multimap iterator
- by user63898
Hello all,
I have
std::list<multimap<std::string,std::string>::iterator> >
Now i have new element:
multimap<std::string,std::string>::value_type aNewMmapValue("foo1","test")
I want to avoid the need to set temp multimap and do insert to the new element just to get its iterator back
so i could to push it back to the:
std::list<multimap<std::string,std::string>::iterator> >
can i somehow avoid this creation of the temp multimap.
Thanks