Let me model my requirement with a simple example...
I use multiset as a part of my program...
say for eg: 500,400,300,200,100
are the value to be inserted in the set
All i have to do is assoaciate each elemnt above with some specified number..
say 500 assoaciated with 1
whenevere the elemnts are pushed and finally extracted(ofcourse minelement is extrcted if minheap)
say 100 is extracted...Now i should be ina postion to get its associated index ie '5' straight away...
how do i map them...???
plz help me to get it solved