gcc/libstdc++-v3 ChangeLog include/bits/basic_ ...

paolo@gcc.gnu.org paolo@gcc.gnu.org
Fri Dec 28 06:00:00 GMT 2001


CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	paolo@gcc.gnu.org	2001-12-28 06:00:18

Modified files:
	libstdc++-v3   : ChangeLog 
	libstdc++-v3/include/bits: basic_string.h 
	libstdc++-v3/testsuite/21_strings: insert.cc 

Log message:
	2001-12-28  Paolo Carlini  <pcarlini@unitus.it>
	Nathan Myers  <ncm@cantrip.org>
	
	* include/bits/basic_string.h (insert(__pos, __s, __n)):
	Optimize by avoiding temporaries and working in-place when possible.
	(insert(__pos1, __str)): Call insert(__pos1, __str, __pos2, __n).
	(insert(__pos1, __str, __pos2, __n)): Call insert(__pos, __s, __n).
	* testsuite/21_strings/insert.cc (test02): New testcases.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.925&r2=1.926
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/bits/basic_string.h.diff?cvsroot=gcc&r1=1.16&r2=1.17
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/21_strings/insert.cc.diff?cvsroot=gcc&r1=1.4&r2=1.5



More information about the Libstdc++-cvs mailing list