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
|