Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | Francis Glassborow<francis.glassborow@btinternet.com> |
| Newsgroups | comp.std.c++ |
| Subject | Re: Request för std::vector and possibly others: minimal initalization |
| Date | Wed, 21 Mar 2012 11:35:07 -0700 (PDT) |
| Organization | unknown |
| Lines | 16 |
| Sender | std-cpp-request@vandevoorde.com |
| Approved | stephen.clamage@oracle.com |
| Message-ID | <vtidnTDJTMF2M_TSnZ2dnUVZ7sOdnZ2d@bt.com> (permalink) |
| References | <abf103e0-7005-47b4-9888-af946353a525@v22g2000vby.googlegroups.com> |
| NNTP-Posting-Host | 1cu/qOB8gPGdcsfkiF5RHJ7JGpNa62RZcaFxu9+NITc= |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| X-Trace | news.albasani.net 0pkYqFwDqvIdwUMi/YAp6zqSn4eNq8PQYEL2JzO3759bbk+z0sir/UlF7y4w4/e3+cizhRmBFZ5niTO1lyqYgw== |
| X-Complaints-To | abuse@albasani.net |
| NNTP-Posting-Date | Wed, 21 Mar 2012 18:35:11 +0000 (UTC) |
| X-Mailer | Perl5 Mail::Internet v2.05 |
| X-Submission-Address | std-cpp-submit@vandevoorde.com |
| Cancel-Lock | sha1:7om0F6351Im7oYLAK3xG7ghcJhM= |
| X-Original-Date | Wed, 21 Mar 2012 10:35:16 +0000 |
| Xref | csiph.com comp.std.c++:452 |
Show key headers only | View raw
On 20/03/2012 06:35, henrikv wrote: > Hello group! > > When writing parallel code, I often allocate a vector for results. I > allocate the complete vector with a single resize. What I'd like to do > is to tell the resize not to initialize the content, since this will > be overwritten anyway. Isn't that what reserve() is for? -- [ comp.std.c++ is moderated. To submit articles, try posting with your ] [ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ] [ --- Please see the FAQ before posting. --- ] [ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Back to comp.std.c++ | Previous | Next — Previous in thread | Next in thread | Find similar
Request för std::vector and possibly others: minimal initalization henrikv <henrik.vallgren@stream-space.com> - 2012-03-19 23:35 -0700
Re: Request för std::vector and possibly others: minimal initalization Francis Glassborow<francis.glassborow@btinternet.com> - 2012-03-21 11:35 -0700
Re: Request för std::vector and possibly others: minimal initalization henrikv<henrik.vallgren@stream-space.com> - 2012-03-23 17:09 -0700
Re: Request för std::vector and possibly others: minimal initalization Daniel Krügler <daniel.kruegler@googlemail.com> - 2012-03-24 19:25 -0700
Re: Request för std::vector and possibly others: minimal initalization Francis Glassborow <francis.glassborow@btinternet.com> - 2012-03-24 19:28 -0700
Re: Request för std::vector and possibly others: minimal initalization Jason McKesson<jmckesson@gmail.com> - 2012-03-21 11:35 -0700
Re: Request för std::vector and possibly others: minimal initalization henrikv<henrik.vallgren@stream-space.com> - 2012-03-23 17:10 -0700
Re: Request för std::vector and possibly others: minimal initalization Jason McKesson<jmckesson@gmail.com> - 2012-03-24 17:55 -0700
Re: Request for std::vector and possibly others: mi brangdon@cix.compulink.co.uk (Dave Harris) - 2012-03-24 19:24 -0700
Re: Re: Request för std::vector and possibly others: minimal initalization jgk@panix.com (Joe keane) - 2012-03-27 12:10 -0700
Re: Request för std::vector and possibly others: minimal initalization Kevin McCarty<kmccarty@gmail.com> - 2012-03-23 17:11 -0700
Re: Request för std::vector and possibly others: minimal initalization Miles Bader<miles@gnu.org> - 2012-03-24 17:55 -0700
Re: Request för std::vector and possibly others: minimal initalization henrikv <henrik.vallgren@stream-space.com> - 2012-03-25 23:14 -0700
Re: Request för std::vector and possibly others: minimal initalization Jason McKesson <jmckesson@gmail.com> - 2012-03-24 19:27 -0700
Re: Request för std::vector and possibly others: minimal initalization Pedro Lamarão<pedro.lamarao@gmail.com> - 2012-03-29 12:28 -0700
Re: Request för std::vector and possibly others: minimal initalization Daniel Krügler <daniel.kruegler@googlemail.com> - 2012-03-29 13:17 -0700
csiph-web