mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-19 20:10:25 +08:00
basic_string.tcc (operator+(const _CharT*, const basic_string&)): No need to go through the append taking two iterators.
2004-01-24 Paolo Carlini <pcarlini@suse.de> * include/bits/basic_string.tcc (operator+(const _CharT*, const basic_string&)): No need to go through the append taking two iterators. From-SVN: r76517
This commit is contained in:
parent
04cc8aef67
commit
bb9909b0fb
@ -1,3 +1,9 @@
|
||||
2004-01-24 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
* include/bits/basic_string.tcc (operator+(const _CharT*,
|
||||
const basic_string&)): No need to go through the append
|
||||
taking two iterators.
|
||||
|
||||
2004-01-24 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
* include/bits/basic_string.tcc (rfind(_CharT, size_type)):
|
||||
|
@ -683,7 +683,7 @@ namespace std
|
||||
const __size_type __len = _Traits::length(__lhs);
|
||||
__string_type __str;
|
||||
__str.reserve(__len + __rhs.size());
|
||||
__str.append(__lhs, __lhs + __len);
|
||||
__str.append(__lhs, __len);
|
||||
__str.append(__rhs);
|
||||
return __str;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user