Updating a map in C++ | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Updating a map in C++

Is it possible if I have a map declared as map<string,set<tuple<string,int,int>>> to update a set by adding one more tuple to it under the same key value of the map? (So that the set binded to one key value gets one more element) If yes, how do I do that?

17th May 2020, 2:28 AM
ja008
ja008 - avatar
2 Respostas
0
Is possible, here a quick example: https://code.sololearn.com/cfbsmDBSo7Sc/?ref=app
17th May 2020, 11:31 PM
Michi
Michi - avatar
0
Michi thank you, that was very helpful
17th May 2020, 11:41 PM
ja008
ja008 - avatar