diff options
| author | Nikolas Klauser <n_klauser@apple.com> | 2023-05-05 08:41:13 -0700 |
|---|---|---|
| committer | Nikolas Klauser <n_klauser@apple.com> | 2023-05-05 13:53:17 -0700 |
| commit | e7e371188513348e493ed8afb1465834ab7afbf5 (patch) | |
| tree | e37d8802fd97c24133bce948046171eef58625fd /libcxx/include/algorithm | |
| parent | 42df495114dc75fac4f75babe8f1ed43b15515fc (diff) | |
[libc++][PSTL] Make the PSTL available by default under -fexperimental-library
This removes the need for a custom libc++ build to have a basic set of PSTL algorithms.
Reviewed By: ldionne, #libc
Spies: miyuki, libcxx-commits, arichardson
Differential Revision: https://reviews.llvm.org/D149624
Diffstat (limited to 'libcxx/include/algorithm')
| -rw-r--r-- | libcxx/include/algorithm | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm index 41ce67530943..469bf1706628 100644 --- a/libcxx/include/algorithm +++ b/libcxx/include/algorithm @@ -1788,6 +1788,10 @@ template <class BidirectionalIterator, class Compare> #include <__algorithm/partition_point.h> #include <__algorithm/pop_heap.h> #include <__algorithm/prev_permutation.h> +#include <__algorithm/pstl_any_all_none_of.h> +#include <__algorithm/pstl_fill.h> +#include <__algorithm/pstl_find.h> +#include <__algorithm/pstl_for_each.h> #include <__algorithm/push_heap.h> #include <__algorithm/ranges_adjacent_find.h> #include <__algorithm/ranges_all_of.h> @@ -1908,13 +1912,6 @@ template <class BidirectionalIterator, class Compare> #include <__algorithm/unwrap_iter.h> #include <__algorithm/upper_bound.h> -#ifdef _LIBCPP_HAS_PARALLEL_ALGORITHMS -# include <__algorithm/pstl_any_all_none_of.h> -# include <__algorithm/pstl_fill.h> -# include <__algorithm/pstl_find.h> -# include <__algorithm/pstl_for_each.h> -#endif - // standard-mandated includes // [algorithm.syn] |
