POV-Ray : Newsgroups : povray.off-topic : You lose some... : Re: You lose some... Server Time
7 Sep 2024 03:22:01 EDT (-0400)
  Re: You lose some...  
From: Warp
Date: 5 Oct 2008 08:06:28
Message: <48e8adc4@news.povray.org>
Fredrik Eriksson <fe79}--at--{yahoo}--dot--{com> wrote:
> std::string codeword( Codeword const& c )
> {
>         std::string out;

  Also after this it can be a good idea to do:

          out.reserve(c.size());

  This will make it slightly more efficient because it avoids reallocations
later, when the string is filled with that many characters.

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.