Click here to Skip to main content
15,892,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow do I turn off a hidden variable?? Pin
IlanTal8-Sep-05 3:37
IlanTal8-Sep-05 3:37 
Questionmap<string, set<string> > Pin
Achim Klein8-Sep-05 3:15
Achim Klein8-Sep-05 3:15 
AnswerRe: map<string, set<string> > Pin
Niklas L8-Sep-05 3:42
Niklas L8-Sep-05 3:42 
GeneralRe: map<string, set<string> > Pin
Achim Klein8-Sep-05 4:01
Achim Klein8-Sep-05 4:01 
AnswerRe: map<string, set<string> > Pin
Niklas L8-Sep-05 3:58
Niklas L8-Sep-05 3:58 
GeneralRe: map<string, set<string> > Pin
Niklas L8-Sep-05 4:01
Niklas L8-Sep-05 4:01 
GeneralRe: map<string, set<string> > Pin
Achim Klein8-Sep-05 4:08
Achim Klein8-Sep-05 4:08 
GeneralRe: map<string, set<string> > Pin
Niklas L8-Sep-05 4:29
Niklas L8-Sep-05 4:29 
What happens if I delete any items from these two sets ?
Are the remaining iterators (that are stored in the maps) still valid ?

Nope. They are NOT. There are at least two ways to go here:

1. When removing let say a keyword, you will have to look up that entry in both maps (this is really not different from what you probably would have done with your original datastructure.) Removing items this way could be a lengthy operation on huge sets.

2. Depending on how you use the data, when removing a keyword, you could just set the actual keyword string to something that is invalid as a keyword, maybe an empty string? If you keep these structures as long as your app is running you will eventually get a lot of 'holes'. But the removal process is as fast as it could get, leaving (minor) performance penalties for other operations where you have to determine if an entry is valid or not. You could even run a clean-up pass to remove those holes whenever the app has nothing else to do.
GeneralRe: map<string, set<string> > Pin
Achim Klein8-Sep-05 5:43
Achim Klein8-Sep-05 5:43 
Questionfunction pointers and dlls Pin
dave2k8-Sep-05 2:50
dave2k8-Sep-05 2:50 
QuestionAbout Wizard based project Pin
parims8-Sep-05 1:53
parims8-Sep-05 1:53 
AnswerRe: About Wizard based project Pin
Cedric Moonen8-Sep-05 2:07
Cedric Moonen8-Sep-05 2:07 
QuestionRetrieve text from cursor position Pin
Samik Karmakar8-Sep-05 1:47
Samik Karmakar8-Sep-05 1:47 
AnswerRe: Retrieve text from cursor position Pin
Cedric Moonen8-Sep-05 2:08
Cedric Moonen8-Sep-05 2:08 
GeneralRe: Retrieve text from cursor position Pin
Samik Karmakar8-Sep-05 2:23
Samik Karmakar8-Sep-05 2:23 
GeneralRe: Retrieve text from cursor position Pin
David Crow8-Sep-05 2:44
David Crow8-Sep-05 2:44 
QuestionAltering pattern for a brush Pin
Niklas L8-Sep-05 1:21
Niklas L8-Sep-05 1:21 
QuestionHow to play mp3 repeatedly Pin
Laffis8-Sep-05 1:15
Laffis8-Sep-05 1:15 
AnswerRe: How to play mp3 repeatedly Pin
Ravi Bhavnani8-Sep-05 2:23
professionalRavi Bhavnani8-Sep-05 2:23 
GeneralRe: How to play mp3 repeatedly Pin
Laffis8-Sep-05 7:12
Laffis8-Sep-05 7:12 
AnswerRe: How to play mp3 repeatedly Pin
Ravi Bhavnani8-Sep-05 7:21
professionalRavi Bhavnani8-Sep-05 7:21 
GeneralRe: How to play mp3 repeatedly Pin
Laffis8-Sep-05 8:12
Laffis8-Sep-05 8:12 
GeneralRe: How to play mp3 repeatedly Pin
Ravi Bhavnani8-Sep-05 8:22
professionalRavi Bhavnani8-Sep-05 8:22 
QuestionMsn Chat Window Pin
Ahmed_Barakat8-Sep-05 1:11
Ahmed_Barakat8-Sep-05 1:11 
GeneralRe: Msn Chat Window Pin
prasad_som8-Sep-05 3:02
prasad_som8-Sep-05 3:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.