Click here to Skip to main content
15,902,893 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: directory browser Pin
Ravi Bhavnani19-Aug-02 11:48
professionalRavi Bhavnani19-Aug-02 11:48 
GeneralRe: directory browser Pin
ns20-Aug-02 1:47
ns20-Aug-02 1:47 
GeneralRe: directory browser Pin
ns20-Aug-02 2:15
ns20-Aug-02 2:15 
GeneralRe: directory browser Pin
Ravi Bhavnani20-Aug-02 4:37
professionalRavi Bhavnani20-Aug-02 4:37 
GeneralSTL vector push_back( ) copy c'stor question Pin
JohnnyG19-Aug-02 10:05
JohnnyG19-Aug-02 10:05 
GeneralRe: STL vector push_back( ) copy c'stor question Pin
Tomasz Sowinski19-Aug-02 10:15
Tomasz Sowinski19-Aug-02 10:15 
GeneralRe: STL vector push_back( ) copy c'stor question Pin
Stuart Dootson19-Aug-02 14:17
professionalStuart Dootson19-Aug-02 14:17 
GeneralRe: STL vector push_back( ) copy c'stor question Pin
JohnnyG20-Aug-02 4:25
JohnnyG20-Aug-02 4:25 
Thanks, for the help guys. Actually, it really is more than just POD type. I have some arrays in there. I have another problem related to this but won't bother you guys with it. However, I'd like to make a comment about how STL was implemented.

In troubleshooting this, I put a breakpoint in my overload of operator= and found that this was getting called way more than I expected. It turns out that the push_back() as you said, calls insert(). But, why does it not just insert the object at the end, without calling the copy constructor/operator= once for each object that is already in the vector? For example, if I have two objects in the vector, when I place the third via push_back(), insert() appears to copy the first two objects in the vector to other objects (I'm assuming they're moving up the chain and that an empty object was put in the front of the vector and the contents are being copied to it, then the 2nd object is copied to the original first obj, and finally my new object is copied to the original 2nd object). Huh??? Alot of copying going on.

There doesn't appear to be a way to put an object into the vector without this copying going on is there?
GeneralWinsock: Socket disconnection Pin
Le centriste19-Aug-02 9:37
Le centriste19-Aug-02 9:37 
GeneralRe: Winsock: Socket disconnection Pin
Ernest Laurentin19-Aug-02 9:52
Ernest Laurentin19-Aug-02 9:52 
GeneralRe: Winsock: Socket disconnection Pin
unregistered19-Aug-02 19:49
unregistered19-Aug-02 19:49 
GeneralToolbar in Internet Explorer Pin
Tzoockee19-Aug-02 9:22
Tzoockee19-Aug-02 9:22 
GeneralRe: Toolbar in Internet Explorer Pin
Michael Dunn19-Aug-02 10:53
sitebuilderMichael Dunn19-Aug-02 10:53 
QuestionHow to know the user switch to another MDI child window? Pin
Vincent Ye19-Aug-02 8:40
Vincent Ye19-Aug-02 8:40 
AnswerRe: How to know the user switch to another MDI child window? Pin
Neville Franks19-Aug-02 10:49
Neville Franks19-Aug-02 10:49 
GeneralTransform WORD data to UNICODE Pin
Eugene Pustovoyt19-Aug-02 8:05
Eugene Pustovoyt19-Aug-02 8:05 
GeneralRe: Transform WORD data to UNICODE Pin
Stuart Dootson19-Aug-02 8:28
professionalStuart Dootson19-Aug-02 8:28 
GeneralRe: Transform WORD data to UNICODE Pin
Michael Dunn19-Aug-02 10:54
sitebuilderMichael Dunn19-Aug-02 10:54 
GeneralRe: Transform WORD data to UNICODE Pin
Eugene Pustovoyt19-Aug-02 19:24
Eugene Pustovoyt19-Aug-02 19:24 
Generaladdchunk doesnt exist --blob question Pin
ns19-Aug-02 7:52
ns19-Aug-02 7:52 
GeneralRe: addchunk doesnt exist --blob question Pin
Joel Lucsy19-Aug-02 17:58
Joel Lucsy19-Aug-02 17:58 
GeneralSend messages over msn network Pin
JDMoore19-Aug-02 7:41
JDMoore19-Aug-02 7:41 
GeneralCloseHandle on thread handle Pin
Le centriste19-Aug-02 7:37
Le centriste19-Aug-02 7:37 
GeneralRe: CloseHandle on thread handle Pin
Ernest Laurentin19-Aug-02 7:47
Ernest Laurentin19-Aug-02 7:47 
GeneralRe: CloseHandle on thread handle Pin
Daniel Turini19-Aug-02 7:47
Daniel Turini19-Aug-02 7:47 

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.