Click here to Skip to main content
16,015,641 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Internet Explorer Toolbar Pin
Michael Dunn11-Dec-03 14:50
sitebuilderMichael Dunn11-Dec-03 14:50 
GeneralUsing Japanese Resources Pin
SanShou10-Dec-03 5:33
SanShou10-Dec-03 5:33 
GeneralWTL 7.1 with VS.NET2003 Support Released Pin
JeremyRemington9-Dec-03 21:10
JeremyRemington9-Dec-03 21:10 
GeneralRe: WTL 7.1 with VS.NET2003 Support Released Pin
Jörgen Sigvardsson10-Dec-03 8:14
Jörgen Sigvardsson10-Dec-03 8:14 
GeneralSTL map. Pin
WREY9-Dec-03 5:11
WREY9-Dec-03 5:11 
GeneralRe: STL map. Pin
ZoogieZork9-Dec-03 6:28
ZoogieZork9-Dec-03 6:28 
GeneralRe: STL map. Pin
WREY9-Dec-03 9:40
WREY9-Dec-03 9:40 
GeneralRe: STL map. Pin
ZoogieZork9-Dec-03 11:42
ZoogieZork9-Dec-03 11:42 
items.insert(items_t::value_type(1,3)).second
Take a closer look. map::insert(value_type) returns a pair which is not the map::value_type. Instead, the second element of the pair is a bool which indicates success or failure. In this case, I'm trying to insert a new element into the map with the same key as the first element (1). It fails, since the key 1 already exists in the map.

Are you referring to retrieving a reference to a map element, then modifying the key? The STL specifies that the key for an associative container should be immutable, but some implementions do not enforce this (it may be possible to change the key in such a way as to not break the strict weak ordering or multiplicity rules -- the STL itself cannot determine this).

- Mike
GeneralRe: STL map. Pin
Jörgen Sigvardsson17-Dec-03 8:18
Jörgen Sigvardsson17-Dec-03 8:18 
GeneralImplementing a COM interface in ATL Pin
Judah Gabriel Himango8-Dec-03 9:18
sponsorJudah Gabriel Himango8-Dec-03 9:18 
GeneralRe: Implementing a COM interface in ATL Pin
Jörgen Sigvardsson12-Dec-03 8:19
Jörgen Sigvardsson12-Dec-03 8:19 
GeneralPrinting with WebBrowser Control Pin
Jo Fredrickson7-Dec-03 18:10
Jo Fredrickson7-Dec-03 18:10 
GeneralRe: Printing with WebBrowser Control Pin
Kosenko Kolya19-Dec-03 0:57
Kosenko Kolya19-Dec-03 0:57 
GeneralRe: Printing with WebBrowser Control Pin
Jo Fredrickson19-Dec-03 17:07
Jo Fredrickson19-Dec-03 17:07 
GeneralPersisting STL containers to disk Pin
Jeremy Pullicino5-Dec-03 4:38
Jeremy Pullicino5-Dec-03 4:38 
GeneralRe: Persisting STL containers to disk Pin
Todd Smith5-Dec-03 5:03
Todd Smith5-Dec-03 5:03 
GeneralRe: Persisting STL containers to disk Pin
John M. Drescher15-Dec-03 7:01
John M. Drescher15-Dec-03 7:01 
GeneralRe: Persisting STL containers to disk Pin
valikac5-Dec-03 5:36
valikac5-Dec-03 5:36 
GeneralRe: Dynamically adding a ActiveX control as a resource to a project Pin
Abhishek Srivastava5-Dec-03 0:51
Abhishek Srivastava5-Dec-03 0:51 
QuestionDoes WTL supports serialization? Pin
Deepa D1-Dec-03 19:55
Deepa D1-Dec-03 19:55 
AnswerRe: Does WTL supports serialization? Pin
Steve S3-Dec-03 22:21
Steve S3-Dec-03 22:21 
GeneralCMapPtrToPtr Pin
Anthony_Yio1-Dec-03 15:54
Anthony_Yio1-Dec-03 15:54 
GeneralRe: CMapPtrToPtr Pin
John M. Drescher1-Dec-03 16:51
John M. Drescher1-Dec-03 16:51 
GeneralRe: CMapPtrToPtr Pin
Michael Dunn2-Dec-03 9:25
sitebuilderMichael Dunn2-Dec-03 9:25 
GeneralSTL threading problem Pin
Josh Gray30-Nov-03 11:42
Josh Gray30-Nov-03 11:42 

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.