forked from OSchip/llvm-project
Marcin Zalewski: Change the name of a template parameter in __copy_backward from _InputIterator to _BidirectionalIterator to better document the intent of the algorithm.
llvm-svn: 174544
This commit is contained in:
parent
c0d905c0e9
commit
d3d4356f6e
|
@ -1528,10 +1528,10 @@ copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result)
|
|||
|
||||
// copy_backward
|
||||
|
||||
template <class _InputIterator, class _OutputIterator>
|
||||
template <class _BidirectionalIterator, class _OutputIterator>
|
||||
inline _LIBCPP_INLINE_VISIBILITY
|
||||
_OutputIterator
|
||||
__copy_backward(_InputIterator __first, _InputIterator __last, _OutputIterator __result)
|
||||
__copy_backward(_BidirectionalIterator __first, _BidirectionalIterator __last, _OutputIterator __result)
|
||||
{
|
||||
while (__first != __last)
|
||||
*--__result = *--__last;
|
||||
|
|
Loading…
Reference in New Issue