From 09e3a360581dc36d0820d3fb6da9bd7cfed87b5d Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Mon, 16 Sep 2024 15:06:20 -0400 Subject: [libc++][modules] Fix missing and incorrect includes (#108850) This patch adds a large number of missing includes in the libc++ headers and the test suite. Those were found as part of the effort to move towards a mostly monolithic top-level std module. --- libcxx/include/algorithm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libcxx/include/algorithm') diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm index 698e6f5cb7ad..36fd035b7e51 100644 --- a/libcxx/include/algorithm +++ b/libcxx/include/algorithm @@ -313,6 +313,9 @@ namespace ranges { template using for_each_result = in_fun_result; // since C++20 + template + using for_each_n_result = in_fun_result; // since C++20 + template S, class Proj = identity, indirectly_unary_invocable> Fun> constexpr ranges::for_each_result @@ -700,6 +703,12 @@ namespace ranges { ranges::lexicographical_compare(R1&& r1, R2&& r2, Comp comp = {}, Proj1 proj1 = {}, Proj2 proj2 = {}); // since C++20 + template + using move_result = in_out_result; // since C++20 + + template + using move_backward_result = in_out_result; // since C++20 + template S1, bidirectional_iterator I2> requires indirectly_movable constexpr ranges::move_backward_result -- cgit v1.2.3