Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > how to remove a pair of key/value in STL hashmap

Reply
Thread Tools

how to remove a pair of key/value in STL hashmap

 
 
sam
Guest
Posts: n/a
 
      05-01-2005
Hi,

There is a list of items stored in a STL hashmap table.
How can I remove a pair of key/value in the hashmap table?

Thanks
Sam
 
Reply With Quote
 
 
 
 
Gianni Mariani
Guest
Posts: n/a
 
      05-01-2005
sam wrote:
> Hi,
>
> There is a list of items stored in a STL hashmap table.
> How can I remove a pair of key/value in the hashmap table?


hashmap is not officially part of the standard, however most STL
containers include an "erase" method which takes an iterator.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
reuse HashMap$Entry (or HashMap in total) to avoid millions of allocations Vince Darley Java 4 03-02-2010 07:48 AM
java.util.Properties extending from HashMap<Object, Object> insteadof HashMap<String, String> Rakesh Java 10 04-08-2008 04:22 AM
a stl map which use stl pair as the key Allerdyce.John@gmail.com C++ 2 02-22-2006 07:25 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57