aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@unitus.it>2001-12-28 15:00:18 +0100
committerPaolo Carlini <paolo@gcc.gnu.org>2001-12-28 14:00:18 +0000
commitbf95248579a90ffaac92d2de6c3b75b41760d2c0 (patch)
tree7708534d0c4ac2441602a8463a62122c1c96af22 /gcc
parent17e9e88c2e9329a033e2559ae20105490d46ca4b (diff)
downloadgcc-bf95248579a90ffaac92d2de6c3b75b41760d2c0.zip
gcc-bf95248579a90ffaac92d2de6c3b75b41760d2c0.tar.gz
gcc-bf95248579a90ffaac92d2de6c3b75b41760d2c0.tar.bz2
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
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions