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,219 of 33,346    |
|    =?ISO-8859-15?Q?Daniel_Kr=FCgler?= to All    |
|    Re: stl |
|    29 Apr 12 16:38:19    |
   
   From: daniel.kruegler@googlemail.com   
      
   Am 29.04.2012 22:09, schrieb Peter Liedermann:   
   > My free profiler "Very Sleepy", which has been of great use to me,   
   > points me to the following, which is not my code and therefore   
   > presumed to be STL-implementation. (VC++ 11, presumably Dinkum)   
   >   
   > void clear()   
   > 0.16s { // erase all   
   > 0.08s erase(begin(), end());   
   > 0.00s }   
   >   
   > Question: Why does it perform this erase as part of clear(), can I   
   > keep it from doing so and how? I see no point in erasing for a vector   
   >
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca