gcc/libstdc++-v3/testsuite/21_strings
Paolo Carlini bf95248579 basic_string.h (insert(__pos, __s, __n)): Optimize by avoiding temporaries and working in-place when possible.
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.

Co-Authored-By: Nathan Myers <ncm@cantrip.org>

From-SVN: r48345
2001-12-28 14:00:18 +00:00
..
append.cc
assign.cc assign.cc (test01): Add tests. 2001-12-16 20:21:20 +00:00
c_strings.cc
capacity.cc re PR libstdc++/4548 (When reserving a string to become smaller, program crashes) 2001-11-21 22:04:53 +00:00
char_traits_requirements.cc
char_traits_typedefs.cc
compare.cc
ctor_copy_dtor.cc
element_access.cc
find.cc
insert.cc basic_string.h (insert(__pos, __s, __n)): Optimize by avoiding temporaries and working in-place when possible. 2001-12-28 14:00:18 +00:00
inserters_extractors.cc
invariants.cc
nonmember.cc
operations.cc
replace.cc
rfind.cc
substr.cc