Is store std::<map> element pointer safe?

Discussion in 'C++' started by Peter Lee, Dec 21, 2006.

  1. Peter Lee

    Peter Lee Guest

    store std::<map>::iterator is safe if didn't remove that element
    Is store std::<map> element's pointer also safe ?
     
    Peter Lee, Dec 21, 2006
    #1
    1. Advertising

  2. Peter Lee wrote:
    > store std::<map>::iterator is safe if didn't remove that element
    > Is store std::<map> element's pointer also safe ?
    >


    Yes, iterators to elements of a std::map are preserved.
     
    Gianni Mariani, Dec 21, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peter Jansson
    Replies:
    5
    Views:
    6,314
    Ivan Vecerina
    Mar 17, 2005
  2. Replies:
    1
    Views:
    428
    red floyd
    Dec 21, 2008
  3. Thomas J. Gritzan
    Replies:
    6
    Views:
    1,025
    James Kanze
    Dec 22, 2008
  4. James Kanze
    Replies:
    0
    Views:
    2,005
    James Kanze
    Dec 21, 2008
  5. Simon
    Replies:
    2
    Views:
    490
    Simon
    May 31, 2009
Loading...

Share This Page