aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/algorithm
diff options
context:
space:
mode:
authorKonstantin Varlamov <varconst@apple.com>2022-01-10 22:49:37 -0800
committerKonstantin Varlamov <varconst@apple.com>2022-01-10 22:49:50 -0800
commit8d23b7420c92ddf8c3e5da39a90a1982fc72c231 (patch)
tree7fd28318db3a3c4a73d72d0827b8c143c7a35223 /libcxx/include/algorithm
parentb28e8abfd0690f8bc04d4c24dd1a8c8c3c0c67bc (diff)
downloadllvm-8d23b7420c92ddf8c3e5da39a90a1982fc72c231.zip
llvm-8d23b7420c92ddf8c3e5da39a90a1982fc72c231.tar.gz
llvm-8d23b7420c92ddf8c3e5da39a90a1982fc72c231.tar.bz2
[libc++][ranges] Implement `uninitialized_copy{,_n}` and `uninitialized_move{,_n}`.
Also implement `in_out_result` which is a prerequisite. Differential Revision: https://reviews.llvm.org/D116023
Diffstat (limited to 'libcxx/include/algorithm')
-rw-r--r--libcxx/include/algorithm7
1 files changed, 7 insertions, 0 deletions
diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm
index 55b0bc5..932d17d 100644
--- a/libcxx/include/algorithm
+++ b/libcxx/include/algorithm
@@ -641,6 +641,12 @@ template <class BidirectionalIterator, class Compare>
constexpr bool // constexpr in C++20
prev_permutation(BidirectionalIterator first, BidirectionalIterator last, Compare comp);
+namespace ranges {
+// [algorithms.results], algorithm result types
+template<class InputIterator, class OutputIterator>
+ struct in_out_result;
+}
+
} // std
*/
@@ -685,6 +691,7 @@ template <class BidirectionalIterator, class Compare>
#include <__algorithm/generate.h>
#include <__algorithm/generate_n.h>
#include <__algorithm/half_positive.h>
+#include <__algorithm/in_out_result.h>
#include <__algorithm/includes.h>
#include <__algorithm/inplace_merge.h>
#include <__algorithm/is_heap.h>