you can use a set to do that. Put the map elements into a set providing a
functor to compare the map elements on their value. Use the set now to
retrieve the elements in the required order.

On Sat, Jun 18, 2011 at 10:08 AM, nicks <[email protected]> wrote:

> Is it Possible to Sort the stl map on the basis of values though they are
> sorted internally on the basis of index ???
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Harshal Choudhary,
III Year B.Tech CSE,
NIT Surathkal, Karnataka, India.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to