Click here to Skip to main content
15,886,758 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Store STL iterator in CListBox Pin
LionAM17-Jan-12 2:02
LionAM17-Jan-12 2:02 
GeneralRe: Store STL iterator in CListBox Pin
Richard MacCutchan17-Jan-12 3:00
mveRichard MacCutchan17-Jan-12 3:00 
GeneralRe: Store STL iterator in CListBox Pin
LionAM17-Jan-12 5:16
LionAM17-Jan-12 5:16 
GeneralRe: Store STL iterator in CListBox Pin
Richard MacCutchan17-Jan-12 5:22
mveRichard MacCutchan17-Jan-12 5:22 
GeneralRe: Store STL iterator in CListBox Pin
LionAM17-Jan-12 9:09
LionAM17-Jan-12 9:09 
GeneralRe: Store STL iterator in CListBox Pin
Richard MacCutchan17-Jan-12 9:31
mveRichard MacCutchan17-Jan-12 9:31 
AnswerRe: Store STL iterator in CListBox Pin
«_Superman_»18-Jan-12 18:23
professional«_Superman_»18-Jan-12 18:23 
GeneralRe: Store STL iterator in CListBox Pin
LionAM19-Jan-12 9:04
LionAM19-Jan-12 9:04 
I agree that these internal members may change for different STL versions.
But, at least for STL list, all iterators remain valid as long as you do not remove the corresponding item from the list. This is guaranteed by the standard.

Have you a better idea how to store a reference to some item of a doubly linked list within the CListBox, so that I can add another item before/after the selected item or to remove the corresponding item from the STL list?

Alex
AnswerRe: Store STL iterator in CListBox Pin
Orjan Westin19-Jan-12 4:24
professionalOrjan Westin19-Jan-12 4:24 
GeneralRe: Store STL iterator in CListBox Pin
LionAM19-Jan-12 8:54
LionAM19-Jan-12 8:54 
GeneralRe: Store STL iterator in CListBox Pin
Orjan Westin19-Jan-12 23:38
professionalOrjan Westin19-Jan-12 23:38 
GeneralRe: Store STL iterator in CListBox Pin
LionAM20-Jan-12 11:04
LionAM20-Jan-12 11:04 
AnswerRe: Store STL iterator in CListBox Pin
Emilio Garavaglia25-Jan-12 21:22
Emilio Garavaglia25-Jan-12 21:22 
AnswerRe: Store STL iterator in CListBox Pin
nv314-Mar-12 13:05
nv314-Mar-12 13:05 
GeneralRe: Store STL iterator in CListBox Pin
LionAM16-Mar-12 12:34
LionAM16-Mar-12 12:34 
QuestionHow to get the address of resource data in an execute file? Pin
whiteclouds15-Jan-12 21:49
whiteclouds15-Jan-12 21:49 
AnswerRe: How to get the address of resource data in an execute file? Pin
Richard MacCutchan15-Jan-12 23:00
mveRichard MacCutchan15-Jan-12 23:00 
GeneralRe: How to get the address of resource data in an execute file? Pin
whiteclouds16-Jan-12 20:59
whiteclouds16-Jan-12 20:59 
QuestionBoost iterators in TR1/C++11 Pin
Orjan Westin13-Jan-12 5:37
professionalOrjan Westin13-Jan-12 5:37 
Questioncompression/decompression using GZip.exe(3rd party) Pin
KASR111-Jan-12 0:13
KASR111-Jan-12 0:13 
AnswerRe: compression/decompression using GZip.exe(3rd party) Pin
Richard MacCutchan11-Jan-12 2:39
mveRichard MacCutchan11-Jan-12 2:39 
AnswerRe: compression/decompression using GZip.exe(3rd party) Pin
Albert Holguin17-Jan-12 9:30
professionalAlbert Holguin17-Jan-12 9:30 
QuestionFireEvent method not returning cancelchange status correctly. Pin
keloth879-Jan-12 22:35
keloth879-Jan-12 22:35 
QuestionVS2010 CLR double to String, String to double MSVC/C++ methods? Pin
meace12345-Jan-12 22:14
meace12345-Jan-12 22:14 
AnswerRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pin
Richard MacCutchan5-Jan-12 23:13
mveRichard MacCutchan5-Jan-12 23:13 

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.