@@ -154,29 +154,28 @@ __minmax_element_vectorized(_Iter __first, _Iter __last) {
154154 } else if (__epilogue_min_element < __min_element) {
155155 __min_element = __epilogue_min_element;
156156 __min_block_start = __epilogue.first ;
157- __min_block_end = __epilogue.first ; // this is global min_element
158- } else if (__epilogue_max_element >= __max_element) {
157+ __min_block_end = __epilogue.first ; // this is global min_element
158+ } else if (__epilogue_max_element >= __max_element) {
159159 __max_element = __epilogue_max_element;
160160 __max_block_start = __epilogue.second ;
161- __max_block_end = __epilogue.second ; // this is global max_element
161+ __max_block_end = __epilogue.second ; // this is global max_element
162162 }
163163 }
164164
165165 // locate min
166- for (; __min_block_start != __min_block_end; ++__min_block_start) {
166+ for (; __min_block_start != __min_block_end; ++__min_block_start) {
167167 __value_type __cur_min_element = *__min_block_start;
168- if ( __cur_min_element == __min_element)
168+ if (__cur_min_element == __min_element)
169169 break ;
170170 }
171171
172172 // locate max
173- for (_Iter __it = __max_block_start; __it != __max_block_end; ++__it) {
173+ for (_Iter __it = __max_block_start; __it != __max_block_end; ++__it) {
174174 __value_type __cur_max_element = *__it;
175- if ( __cur_max_element == __max_element)
175+ if (__cur_max_element == __max_element)
176176 __max_block_start = __it;
177177 }
178178
179-
180179 return {__min_block_start, __max_block_start};
181180}
182181
@@ -214,7 +213,7 @@ __minmax_element_impl(_Iter __first, _Iter __last, _Comp& __comp, _Proj& __proj)
214213// } else {
215214// }
216215// }
217- #endif // _LIBCPP_VECTORIZE_ALGORITHMS
216+ #endif // _LIBCPP_VECTORIZE_ALGORITHMS
218217
219218template <class _Iter , class _Sent , class _Proj , class _Comp >
220219_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 pair<_Iter, _Iter>
0 commit comments