gcc/libstdc++-v3/include
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
..
backward Intro.3: New 'Allocators' module. 2001-12-19 21:57:43 +00:00
bits 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
c/bits configure.in: Change GLIBCPP_ENABLE_SHADOW to GLIBCPP_ENABLE_CHEADERS. 2000-12-22 00:14:08 +00:00
c_shadow builtins.def: Rename BUILT_IN_FSQRT to BUILT_IN_SQRT and __builtin_fsqrt to __builtin_sqrt. 2001-12-14 22:06:35 +01:00
c_std/bits std_c*.h: Don't use include_next. 2001-09-04 21:42:24 +00:00
ext stl_rope.h (_Rope_iterator): Add local typedef to fix implicit typename problems. 2001-12-21 13:08:35 +00:00
std *: Add Doxygen hooks. 2001-09-27 22:44:24 +00:00
Makefile.am limits.h: Move to... 2001-10-23 21:40:31 +00:00
Makefile.in limits.h: Move to... 2001-10-23 21:40:31 +00:00