Commit d01f3474 by Paolo Carlini Committed by Paolo Carlini

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
parent 6fc5dc67
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.
......
......@@ -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
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment