lundi 25 octobre 2021

how to emplace in map of(string and vector)..?

I'm not sure if it is possible to have a vector inside of a map container.

If yes, can I have the map with vector and vector?

INPUT

ONE 1 11 111 1111
TWO 22 2 2222
THREE 333 3333 3
map<string, vector<int>> mp;

How to emplace the input in the above container?

map<vector<int>, vector<int>> mp;

If this is possible to implement, how will you emplace elements here, and how can you access those elements?

Aucun commentaire:

Enregistrer un commentaire