@@ -39,14 +39,12 @@ __pattern_transform_reduce(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterat
39
39
_BinaryOperation1, _BinaryOperation2, _IsVector,
40
40
/* is_parallel=*/ std::false_type) noexcept ;
41
41
42
- #if _PSTL_USE_PAR_POLICIES
43
42
template <class _ExecutionPolicy , class _RandomAccessIterator1 , class _RandomAccessIterator2 , class _Tp ,
44
43
class _BinaryOperation1 , class _BinaryOperation2 , class _IsVector >
45
44
_Tp
46
45
__pattern_transform_reduce (_ExecutionPolicy&&, _RandomAccessIterator1, _RandomAccessIterator1, _RandomAccessIterator2,
47
46
_Tp, _BinaryOperation1, _BinaryOperation2, _IsVector __is_vector,
48
47
/* is_parallel=*/ std::true_type);
49
- #endif
50
48
51
49
// ------------------------------------------------------------------------
52
50
// transform_reduce (version with unary and binary functions)
@@ -67,14 +65,12 @@ __pattern_transform_reduce(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterato
67
65
_UnaryOperation, _IsVector,
68
66
/* is_parallel=*/ std::false_type) noexcept ;
69
67
70
- #if _PSTL_USE_PAR_POLICIES
71
68
template <class _ExecutionPolicy , class _ForwardIterator , class _Tp , class _BinaryOperation , class _UnaryOperation ,
72
69
class _IsVector >
73
70
_Tp
74
71
__pattern_transform_reduce (_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, _Tp, _BinaryOperation,
75
72
_UnaryOperation, _IsVector,
76
73
/* is_parallel=*/ std::true_type);
77
- #endif
78
74
79
75
// ------------------------------------------------------------------------
80
76
// transform_exclusive_scan
@@ -99,21 +95,17 @@ __pattern_transform_scan(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator,
99
95
_BinaryOperation, _Inclusive, _IsVector,
100
96
/* is_parallel=*/ std::false_type) noexcept ;
101
97
102
- #if _PSTL_USE_PAR_POLICIES
103
98
template <class _ExecutionPolicy , class _RandomAccessIterator , class _OutputIterator , class _UnaryOperation , class _Tp ,
104
99
class _BinaryOperation , class _Inclusive , class _IsVector >
105
100
typename std::enable_if<!std::is_floating_point<_Tp>::value, _OutputIterator>::type
106
101
__pattern_transform_scan (_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _OutputIterator,
107
102
_UnaryOperation, _Tp, _BinaryOperation, _Inclusive, _IsVector, /* is_parallel=*/ std::true_type);
108
- #endif
109
103
110
- #if _PSTL_USE_PAR_POLICIES
111
104
template <class _ExecutionPolicy , class _RandomAccessIterator , class _OutputIterator , class _UnaryOperation , class _Tp ,
112
105
class _BinaryOperation , class _Inclusive , class _IsVector >
113
106
typename std::enable_if<std::is_floating_point<_Tp>::value, _OutputIterator>::type
114
107
__pattern_transform_scan (_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _OutputIterator,
115
108
_UnaryOperation, _Tp, _BinaryOperation, _Inclusive, _IsVector, /* is_parallel=*/ std::true_type);
116
- #endif
117
109
118
110
// ------------------------------------------------------------------------
119
111
// adjacent_difference
@@ -133,13 +125,11 @@ _OutputIterator
133
125
__pattern_adjacent_difference (_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, _OutputIterator, _BinaryOperation,
134
126
_IsVector, /* is_parallel*/ std::false_type) noexcept ;
135
127
136
- #if _PSTL_USE_PAR_POLICIES
137
128
template <class _ExecutionPolicy , class _ForwardIterator , class _OutputIterator , class _BinaryOperation ,
138
129
class _IsVector >
139
130
_OutputIterator
140
131
__pattern_adjacent_difference (_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, _OutputIterator, _BinaryOperation,
141
132
_IsVector, /* is_parallel*/ std::true_type);
142
- #endif
143
133
144
134
} // namespace __internal
145
135
} // namespace __pstl
0 commit comments