* include/bits/basic_string.tcc (_M_replace_safe): Fix typos.
* include/bits/basic_string.h: Fix typos.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47847
138bc75d-0d04-0410-961f-
82ee72b054a4
2001-12-10 Paolo Carlini <pcarlini@unitus.it>
+
+ * include/bits/basic_string.tcc (_M_replace_safe): Fix typos.
+ * include/bits/basic_string.h: Fix typos.
+
+2001-12-10 Paolo Carlini <pcarlini@unitus.it>
Nathan Myers <ncm@cantrip.org>
* include/bits/basic_string.tcc (_M_replace_safe): New function.
_M_replace(iterator __i1, iterator __i2, _InputIterator __k1,
_InputIterator __k2, input_iterator_tag);
- template<class _InputIterator>
+ template<class _ForwardIterator>
basic_string&
- _M_replace_safe(iterator __i1, iterator __i2, _InputIterator __k1,
- _InputIterator __k2);
+ _M_replace_safe(iterator __i1, iterator __i2, _ForwardIterator __k1,
+ _ForwardIterator __k2);
// _S_construct_aux is used to implement the 21.3.1 para 15 which
// requires special behaviour if _InIter is an integral type
// i.e., when source and destination ranges are known to not overlap.
// Presently, is called by _M_replace and by the various append.
template<typename _CharT, typename _Traits, typename _Alloc>
- template<typename _InputIter>
+ template<typename _ForwardIter>
basic_string<_CharT, _Traits, _Alloc>&
basic_string<_CharT, _Traits, _Alloc>::
- _M_replace_safe(iterator __i1, iterator __i2, _InputIter __k1,
- _InputIter __k2)
+ _M_replace_safe(iterator __i1, iterator __i2, _ForwardIter __k1,
+ _ForwardIter __k2)
{
size_type __dnew = static_cast<size_type>(distance(__k1, __k2));
size_type __dold = __i2 - __i1;