Skip to content

Commit b6a420a

Browse files
adds ranges::fold_left_with_iter and ranges::fold_left
Notable things in this commit: * refactors `__indirect_binary_left_foldable`, making it slightly different (but equivalent) to _`indirect-binary-left-foldable`_, which improves readability (a [patch to the Working Paper][patch] was made) * omits `__cpo` namespace, since it is not required for implementing niebloids (a cleanup should happen in 2024) * puts tests ensuring invocable robustness and dangling correctness inside the correctness testing to ensure that the algorithms' results are still correct [patch]: cplusplus/draft#6734 Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
1 parent ab265e7 commit b6a420a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

filenames.libcxx.gni

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ libcxx_headers = [
2424
"//third_party/libc++/src/include/__algorithm/find_if.h",
2525
"//third_party/libc++/src/include/__algorithm/find_if_not.h",
2626
"//third_party/libc++/src/include/__algorithm/find_segment_if.h",
27+
"//third_party/libc++/src/include/__algorithm/fold.h",
2728
"//third_party/libc++/src/include/__algorithm/for_each.h",
2829
"//third_party/libc++/src/include/__algorithm/for_each_n.h",
2930
"//third_party/libc++/src/include/__algorithm/for_each_segment.h",
@@ -109,6 +110,7 @@ libcxx_headers = [
109110
"//third_party/libc++/src/include/__algorithm/ranges_any_of.h",
110111
"//third_party/libc++/src/include/__algorithm/ranges_binary_search.h",
111112
"//third_party/libc++/src/include/__algorithm/ranges_clamp.h",
113+
"//third_party/libc++/src/include/__algorithm/ranges_contains.h",
112114
"//third_party/libc++/src/include/__algorithm/ranges_copy.h",
113115
"//third_party/libc++/src/include/__algorithm/ranges_copy_backward.h",
114116
"//third_party/libc++/src/include/__algorithm/ranges_copy_if.h",
@@ -914,10 +916,8 @@ libcxx_headers = [
914916
"//third_party/libc++/src/include/expected",
915917
"//third_party/libc++/src/include/experimental/__config",
916918
"//third_party/libc++/src/include/experimental/__memory",
917-
"//third_party/libc++/src/include/experimental/__simd/abi_tag.h",
918919
"//third_party/libc++/src/include/experimental/__simd/aligned_tag.h",
919920
"//third_party/libc++/src/include/experimental/__simd/declaration.h",
920-
"//third_party/libc++/src/include/experimental/__simd/internal_declaration.h",
921921
"//third_party/libc++/src/include/experimental/__simd/reference.h",
922922
"//third_party/libc++/src/include/experimental/__simd/scalar.h",
923923
"//third_party/libc++/src/include/experimental/__simd/simd.h",

0 commit comments

Comments
 (0)