I have a data like
**"London","Paris" -> 10
"New York","Japan" -> 100
"London","Japan" -> 200**
..
How to save pair with value using STL? As Map only allow key and value, not extra key.
I can save key with extra object which will hold the 2 values.
map < string, Object>
But then i have to go through an extra step of parsing the object and it will be an overhead.
Even i can do my work using linked list. But is there any other efficient way to save it and access it? Or i am thinking in correct direction? I am new to STL.