From b6c297e96eae8be497528b11afaaa870c942a453 Mon Sep 17 00:00:00 2001 From: Mike Matera Date: Sat, 30 Dec 2017 17:22:02 -0800 Subject: [PATCH] Fix for issue #14. --- src/algorithm | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/algorithm b/src/algorithm index af04f972..e7206c62 100644 --- a/src/algorithm +++ b/src/algorithm @@ -383,6 +383,16 @@ namespace std{ b = temp; } + template _UCXXEXPORT + void + iter_swap(ForwardIterator1 a, ForwardIterator2 b) + { + typename iterator_traits::value_type temp(*a); + *a = *b; + *b = temp; + } + + template _UCXXEXPORT ForwardIterator2 swap_ranges(ForwardIterator1 first1, ForwardIterator1 last1, ForwardIterator2 first2) @@ -396,16 +406,6 @@ namespace std{ } - template _UCXXEXPORT - void - iter_swap(ForwardIterator1 a, ForwardIterator2 b) - { - typename iterator_traits::value_type temp(*a); - *a = *b; - *b = temp; - } - - template _UCXXEXPORT OutputIterator transform(InputIterator first, InputIterator last,