summaryrefslogtreecommitdiffstats
path: root/libcxx/include/algorithm
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2013-08-22 18:29:50 +0000
committerHoward Hinnant <hhinnant@apple.com>2013-08-22 18:29:50 +0000
commit179b1f8cf2f4b9dc8290c6753bf7626f48a81321 (patch)
treeefeef4a001b8c31ad778efd0bbeb8447a1b692df /libcxx/include/algorithm
parent883a2b2427db41cd8e89f360eaf869e61c4e8876 (diff)
downloadbcm5719-llvm-179b1f8cf2f4b9dc8290c6753bf7626f48a81321.tar.gz
bcm5719-llvm-179b1f8cf2f4b9dc8290c6753bf7626f48a81321.zip
Zhihao Yuan noted that there were a few unneeded statements. Eliminated the unnecessary ones, and commented the ones that are there for non-obvious reasons such as to help things limp along in C++03 language mode.
llvm-svn: 189039
Diffstat (limited to 'libcxx/include/algorithm')
-rw-r--r--libcxx/include/algorithm2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm
index 053b809fa99..03b872a7b5e 100644
--- a/libcxx/include/algorithm
+++ b/libcxx/include/algorithm
@@ -829,7 +829,7 @@ for_each(_InputIterator __first, _InputIterator __last, _Function __f)
{
for (; __first != __last; ++__first)
__f(*__first);
- return _VSTD::move(__f);
+ return _VSTD::move(__f); // explicitly moved for (emulated) C++03
}
// find
OpenPOWER on IntegriCloud