Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-05-27 19:04:19 +0400
committerHoward Hinnant <hhinnant@apple.com>2011-05-27 19:04:19 +0400
commita676f7d36a062cd74f471268c241ebc326f6c861 (patch)
tree8b875da9c2e239b9d895a8ae69c97210540ee756 /libcxx/include/algorithm
parent749ef5f420e3fca8fe582195462e629673a2b3fa (diff)
noexcept for <utility>. This included a little repair on pair, and some noexcept workarounds.
llvm-svn: 132186
Diffstat (limited to 'libcxx/include/algorithm')
-rw-r--r--libcxx/include/algorithm8
1 files changed, 1 insertions, 7 deletions
diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm
index 4909221bb09f..4789b0bb2a13 100644
--- a/libcxx/include/algorithm
+++ b/libcxx/include/algorithm
@@ -1659,13 +1659,7 @@ move_backward(_BidirectionalIterator1 __first, _BidirectionalIterator1 __last,
// iter_swap
-template <class _ForwardIterator1, class _ForwardIterator2>
-inline _LIBCPP_INLINE_VISIBILITY
-void
-iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b)
-{
- swap(*__a, *__b);
-}
+// moved to <type_traits> for better swap / noexcept support
// transform