| Author |
How to implemnt dupplicate key map...
|
dumani jayasinghe
Greenhorn
Joined: Dec 03, 2008
Posts: 29
|
|
|
Please can any one guide me to implement map with duplicate key?
|
 |
Joseph Mokenela
Ranch Hand
Joined: Jan 18, 2011
Posts: 58
|
|
I would suggest you check the following link.
http://stackoverflow.com/questions/1062960/map-implementation-with-duplicate-keys
Hope that helps!
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32654
|
|
That is a contradiction in terms. A map represents a function, and a function cannot have duplicate results from one input.
It is easy to have duplicate values. . . . will work, but this wont't:you will ony ever get Bunkhouse Porch out of that Map.
|
 |
 |
|
|
subject: How to implemnt dupplicate key map...
|
|
|