basic_string.tcc (_M_replace_safe): Fix typos.

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.

From-SVN: r47847
This commit is contained in:
Paolo Carlini 2001-12-10 15:32:28 +01:00 committed by Paolo Carlini
parent 6fc5dc671c
commit d01f347422
3 changed files with 11 additions and 6 deletions

View file

@ -1,3 +1,8 @@
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>

View file

@ -639,10 +639,10 @@ namespace std
_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

View file

@ -514,11 +514,11 @@ namespace std
// 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;