Click here to Skip to main content
15,902,938 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: COM server without idl file Pin
petrym9-Sep-02 7:03
petrym9-Sep-02 7:03 
GeneralRe: COM server without idl file Pin
Rais10-Sep-02 4:00
Rais10-Sep-02 4:00 
GeneralRe: COM server without idl file Pin
petrym10-Sep-02 9:00
petrym10-Sep-02 9:00 
GeneralSTL map question Pin
Chris Hambleton3-Sep-02 4:06
Chris Hambleton3-Sep-02 4:06 
GeneralRe: STL map question Pin
Joaquín M López Muñoz3-Sep-02 4:08
Joaquín M López Muñoz3-Sep-02 4:08 
GeneralRe: STL map question Pin
John M. Drescher3-Sep-02 4:33
John M. Drescher3-Sep-02 4:33 
GeneralRe: STL map question Pin
Alexandru Savescu3-Sep-02 22:20
Alexandru Savescu3-Sep-02 22:20 
GeneralRe: STL map question Pin
CodeGuy3-Sep-02 4:23
CodeGuy3-Sep-02 4:23 
Chris Hambleton wrote:
Is there a built-in function that would allow me to do this without having to create a new map and do this through a loop?

Nope. A map is normally a red-black tree implementation, so by swapping a key-value pair, you've essentially invalidated the location of that node in the tree.

You can always remove the key-value pair first and then add the swapped values back in the tree. (More overhead, less memory usage of course.)

Brandon
GeneralRe: STL map question Pin
Joao Vaz3-Sep-02 4:56
Joao Vaz3-Sep-02 4:56 
GeneralRe: STL map question Pin
Alexandru Savescu3-Sep-02 22:23
Alexandru Savescu3-Sep-02 22:23 
GeneralRe: STL map question Pin
Todd Smith5-Sep-02 13:18
Todd Smith5-Sep-02 13:18 
GeneralRe: STL map question Pin
Jörgen Sigvardsson3-Oct-02 14:43
Jörgen Sigvardsson3-Oct-02 14:43 
GeneralRe: STL map question Pin
Jörgen Sigvardsson3-Oct-02 14:37
Jörgen Sigvardsson3-Oct-02 14:37 
GeneralIDL question Pin
Jeremy Pullicino2-Sep-02 23:00
Jeremy Pullicino2-Sep-02 23:00 
GeneralRe: IDL question Pin
Joaquín M López Muñoz3-Sep-02 2:49
Joaquín M López Muñoz3-Sep-02 2:49 
GeneralRe: IDL question Pin
Jeremy Pullicino3-Sep-02 3:44
Jeremy Pullicino3-Sep-02 3:44 
GeneralRe: IDL question Pin
Joaquín M López Muñoz3-Sep-02 4:04
Joaquín M López Muñoz3-Sep-02 4:04 
GeneralRe: IDL question Pin
Bill S3-Sep-02 4:24
professionalBill S3-Sep-02 4:24 
GeneralRe: IDL question Pin
Jeremy Pullicino3-Sep-02 5:13
Jeremy Pullicino3-Sep-02 5:13 
GeneralRe: IDL question Pin
Bill S3-Sep-02 5:21
professionalBill S3-Sep-02 5:21 
GeneralRe: IDL question Pin
Tom Wright5-Sep-02 7:36
Tom Wright5-Sep-02 7:36 
QuestionATL based COM fire-event client ? Pin
alma2-Sep-02 3:25
alma2-Sep-02 3:25 
AnswerRe: ATL based COM fire-event client ? Pin
Pavel Klocek2-Sep-02 6:20
Pavel Klocek2-Sep-02 6:20 
AnswerRe: ATL based COM fire-event client ? Pin
Todd Smith2-Sep-02 15:43
Todd Smith2-Sep-02 15:43 
GeneralA question about #define WIN32 and "sbrk" Pin
George Ma1-Sep-02 1:13
George Ma1-Sep-02 1: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.