How do you erase an entry from a map?

Discussion in 'C++' started by el_boricua, Aug 1, 2005.

  1. el_boricua

    el_boricua Guest

    How do you erase an entry from a map?

    Thanks,
    Noel
     
    el_boricua, Aug 1, 2005
    #1
    1. Advertisements

  2. el_boricua wrote:
    > How do you erase an entry from a map?


    I usually use one of the 'erase' member functions.

    V
     
    Victor Bazarov, Aug 1, 2005
    #2
    1. Advertisements

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. Angus Leeming
    Replies:
    5
    Views:
    3,137
    Howard Hinnant
    Feb 4, 2004
  2. Pieter Thysebaert

    STL std::map erase

    Pieter Thysebaert, May 13, 2004, in forum: C++
    Replies:
    26
    Views:
    14,674
    Robbie Hatley
    May 14, 2004
  3. jose luis fernandez diaz

    erase elements while iterating on a map

    jose luis fernandez diaz, May 28, 2004, in forum: C++
    Replies:
    3
    Views:
    11,901
    Derek
    May 28, 2004
  4. Gernot Frisch

    std::map - erase+continue

    Gernot Frisch, Mar 7, 2005, in forum: C++
    Replies:
    17
    Views:
    3,191
    Andre Kostur
    Mar 9, 2005
  5. Marcin Kaliciñski

    Return value of std::map::erase()

    Marcin Kaliciñski, Mar 10, 2005, in forum: C++
    Replies:
    1
    Views:
    576
    Chris Jefferson
    Mar 10, 2005
  6. Viral Shah

    map::erase

    Viral Shah, Jun 21, 2005, in forum: C++
    Replies:
    5
    Views:
    671
    verec
    Jun 22, 2005
  7. erase vs. erase

    , Mar 25, 2006, in forum: C++
    Replies:
    7
    Views:
    590
    Pete Becker
    Mar 30, 2006
  8. Milind

    Map erase memory problem

    Milind, Jun 15, 2006, in forum: C++
    Replies:
    1
    Views:
    453
    Daniel T.
    Jun 15, 2006
Loading...