From b73568dc24f4c966cf69a3b200bb5baad003e571 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Wed, 6 Feb 2013 21:03:39 +0000 Subject: [PATCH] Marcin Zalewski: Change the name of a template parameter in __copy_backward from _InputIterator to _BidirectionalIterator to better document the intent of the algorithm. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@174544 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/algorithm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/algorithm b/include/algorithm index 0f6107bd..e24f9793 100644 --- a/include/algorithm +++ b/include/algorithm @@ -1528,10 +1528,10 @@ copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result) // copy_backward -template +template 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;