Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c++.moderated    |    Moderated discussion of C++ superhackery    |    33,346 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 32,879 of 33,346    |
|    Andy Champ to All    |
|    Re: fails to call destructor in a linked    |
|    01 Mar 13 00:19:41    |
      From: no.way@nospam.invalid              On 28/02/2013 19:07, Öö Tiib wrote:       > So what? One day he might come here after school asking for job.       > Chicks of personal department ask me do I need him. I find out that       > he does not know standard library and can't use smart pointers and       > answer "No". I told what he should learn for to make it more likely       > that I answer "Yes".              :) He'd need both for us.              > I rarely care what people get from those professors who teach linked       > list from year to year until death takes them. Have you met a real       > case when a std::list did outperform all other alternatives for a       > container? I haven't. My experiments trying to construct one have       > shown that it has tiny advantages in ridiculous edge cases.              We just don't use std::list - we use vector, almost all the time. It's       quite rare that we need to add things anywhere but the end, or that we       need to grow it enough to matter, and off the top of my head I can't       think of any other reasons to use list. (I did have one case where the       things _only_ went on the beginning, so I just read it backwards)              On the other hand every item in a list has size overhead...              Andy                     --        [ See http://www.gotw.ca/resources/clcm.htm for info about ]        [ comp.lang.c++.moderated. First time posters: Do this! ]              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca