Adding moving to basic_string

Kenneth Duda ken.duda@gmail.com
Tue May 17 14:51:00 GMT 2005


On 5/17/05, chris jefferson <caj@cs.york.ac.uk> wrote:
> Kenneth Duda wrote:
> 
> >Hi everyone,
> >
> >Here is a solution to
> >
> >   s = a + b + c + d
> >
> >that boils down to one malloc followed by 4 memcpy's. 

> The reason that this, and many other possible cool optimisations can't
> be implemented is by my reading the standard imposes exactly what the
> return conditions of various functions must be.

Bummer!  Thanks for the detailed response.

   -Ken



More information about the Libstdc++ mailing list