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:
parent
6fc5dc671c
commit
d01f347422
3 changed files with 11 additions and 6 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue