Connecting Tech Pros Worldwide Forums | Help | Site Map

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

sam
Guest
 
Posts: n/a
#1: Jul 23 '05
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

Gianni Mariani
Guest
 
Posts: n/a
#2: Jul 23 '05

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


sam wrote:[color=blue]
> 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?[/color]

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