diff options
author | Howard Hinnant <hhinnant@apple.com> | 2013-02-07 01:03:39 +0400 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2013-02-07 01:03:39 +0400 |
commit | d3d4356f6e50eef68db561349a39417c409ec148 (patch) | |
tree | b405e191c29075370d0be3ec67bdedf03e2d55be /libcxx/include/algorithm | |
parent | c0d905c0e925d3a23cec68180f24504172e78cfd (diff) |
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
Diffstat (limited to 'libcxx/include/algorithm')
-rw-r--r-- | libcxx/include/algorithm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm index 0f6107bdde05..e24f9793c50b 100644 --- a/libcxx/include/algorithm +++ b/libcxx/include/algorithm @@ -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; |