Thread: std::map

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    81
    Rep Power
    11

    std::map


    I want to insert several std :: pair in a map without anysorting. I just want to get the key,pair values as I inserted. What is the option, I should use?
    Thanks,
    Lalitha
    Last edited by lalitha; September 11th, 2003 at 10:40 AM.
  2. #2
  3. No Profile Picture
    Dinesh_P_V
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    India
    Posts
    259
    Rep Power
    0

    Not possible


    If you disable the sorting, then you cannot access the data. This is because of the reason that you access to it by comparing the keys. So if that function is disabled how can you access the elements.
    You can try it using a list.

    -Murugesan

IMN logo majestic logo threadwatch logo seochat tools logo