mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-24 12:51:15 +08:00
basic_string.tcc (basic_string(const basic_string&, size_type, size_type), [...]): Avoid unnecessarily constructing iterators.
2004-01-27 Paolo Carlini <pcarlini@suse.de> * include/bits/basic_string.tcc (basic_string(const basic_string&, size_type, size_type), basic_string(const basic_string&, size_type, size_type, const _Alloc&)): Avoid unnecessarily constructing iterators. From-SVN: r76696
This commit is contained in:
parent
4137ba7ab7
commit
a3af79eab6
libstdc++-v3
@ -1,3 +1,10 @@
|
||||
2004-01-27 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
* include/bits/basic_string.tcc
|
||||
(basic_string(const basic_string&, size_type, size_type),
|
||||
basic_string(const basic_string&, size_type, size_type,
|
||||
const _Alloc&)): Avoid unnecessarily constructing iterators.
|
||||
|
||||
2004-01-26 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
* config/locale/generic/c_locale.cc: Fix throw messages
|
||||
|
@ -207,10 +207,10 @@ namespace std
|
||||
template<typename _CharT, typename _Traits, typename _Alloc>
|
||||
basic_string<_CharT, _Traits, _Alloc>::
|
||||
basic_string(const basic_string& __str, size_type __pos, size_type __n)
|
||||
: _M_dataplus(_S_construct(__str._M_ibegin()
|
||||
: _M_dataplus(_S_construct(__str._M_data()
|
||||
+ __str._M_check(__pos,
|
||||
"basic_string::basic_string"),
|
||||
__str._M_ibegin() + __pos
|
||||
__str._M_data() + __pos
|
||||
+ __str._M_limit(__pos, __n),
|
||||
_Alloc()), _Alloc())
|
||||
{ }
|
||||
@ -219,10 +219,10 @@ namespace std
|
||||
basic_string<_CharT, _Traits, _Alloc>::
|
||||
basic_string(const basic_string& __str, size_type __pos,
|
||||
size_type __n, const _Alloc& __a)
|
||||
: _M_dataplus(_S_construct(__str._M_ibegin()
|
||||
: _M_dataplus(_S_construct(__str._M_data()
|
||||
+ __str._M_check(__pos,
|
||||
"basic_string::basic_string"),
|
||||
__str._M_ibegin() + __pos
|
||||
__str._M_data() + __pos
|
||||
+ __str._M_limit(__pos, __n), __a), __a)
|
||||
{ }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user