aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@suse.de>2004-01-24 12:32:54 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2004-01-24 12:32:54 +0000
commit8865bf80eeef29f6094b120cf7a32e22c868b76d (patch)
tree2ea0aa27519b0e61e91a11744da955b0b9836a9e /libstdc++-v3
parentfefe561e809323e473448eb6a3631d3db31f2717 (diff)
downloadgcc-8865bf80eeef29f6094b120cf7a32e22c868b76d.zip
gcc-8865bf80eeef29f6094b120cf7a32e22c868b76d.tar.gz
gcc-8865bf80eeef29f6094b120cf7a32e22c868b76d.tar.bz2
basic_string.h (insert(size_type, const basic_string&, size_type, size_type)): Define inline here.
2004-01-24 Paolo Carlini <pcarlini@suse.de> * include/bits/basic_string.h (insert(size_type, const basic_string&, size_type, size_type)): Define inline here. * include/bits/basic_string.tcc (insert(size_type, const basic_string&, size_type, size_type)): Move inline. From-SVN: r76509
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog7
-rw-r--r--libstdc++-v3/include/bits/basic_string.h5
-rw-r--r--libstdc++-v3/include/bits/basic_string.tcc11
3 files changed, 11 insertions, 12 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 2f1da9e..01e3dc2 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,12 @@
2004-01-24 Paolo Carlini <pcarlini@suse.de>
+ * include/bits/basic_string.h (insert(size_type,
+ const basic_string&, size_type, size_type)): Define inline here.
+ * include/bits/basic_string.tcc (insert(size_type,
+ const basic_string&, size_type, size_type)): Move inline.
+
+2004-01-24 Paolo Carlini <pcarlini@suse.de>
+
* include/bits/basic_string.h (assign(const basic_string&,
size_type, size_type)): Define inline here.
(replace(size_type, size_type, const basic_string&,
diff --git a/libstdc++-v3/include/bits/basic_string.h b/libstdc++-v3/include/bits/basic_string.h
index 9e37583..eb160d3 100644
--- a/libstdc++-v3/include/bits/basic_string.h
+++ b/libstdc++-v3/include/bits/basic_string.h
@@ -920,7 +920,10 @@ namespace std
*/
basic_string&
insert(size_type __pos1, const basic_string& __str,
- size_type __pos2, size_type __n);
+ size_type __pos2, size_type __n)
+ { return this->insert(__pos1, __str._M_data()
+ + __str._M_check(__pos2, "basic_string::insert"),
+ __str._M_limit(__pos2, __n)); }
/**
* @brief Insert a C substring.
diff --git a/libstdc++-v3/include/bits/basic_string.tcc b/libstdc++-v3/include/bits/basic_string.tcc
index a7638df..01919a4 100644
--- a/libstdc++-v3/include/bits/basic_string.tcc
+++ b/libstdc++-v3/include/bits/basic_string.tcc
@@ -295,17 +295,6 @@ namespace std
template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc>&
basic_string<_CharT, _Traits, _Alloc>::
- insert(size_type __pos1, const basic_string& __str,
- size_type __pos2, size_type __n)
- {
- return this->insert(__pos1, __str._M_data()
- + __str._M_check(__pos2, "basic_string::insert"),
- __str._M_limit(__pos2, __n));
- }
-
- template<typename _CharT, typename _Traits, typename _Alloc>
- basic_string<_CharT, _Traits, _Alloc>&
- basic_string<_CharT, _Traits, _Alloc>::
insert(size_type __pos, const _CharT* __s, size_type __n)
{
__glibcxx_requires_string_len(__s, __n);