@@ -165,15 +165,15 @@ class concat_view : public view_interface<concat_view<_Views...>> {
165165 requires(!(__simple_view<_Views> && ...))
166166 {
167167 __iterator<false > __it (this , in_place_index<0 >, ranges::begin (std::get<0 >(__views_)));
168- __it.template satisfy <0 >();
168+ __it.template __satisfy <0 >();
169169 return __it;
170170 }
171171
172172 _LIBCPP_HIDE_FROM_ABI constexpr __iterator<true > begin () const
173173 requires((range<const _Views> && ...) && __concatable<const _Views...>)
174174 {
175175 __iterator<true > __it (this , in_place_index<0 >, ranges::begin (std::get<0 >(__views_)));
176- __it.template satisfy <0 >();
176+ __it.template __satisfy <0 >();
177177 return __it;
178178 }
179179
@@ -255,44 +255,44 @@ class concat_view<_Views...>::__iterator {
255255 _If< __all_forward<_Const, _Views...>, forward_iterator_tag, input_iterator_tag > > >;
256256 using value_type = __concat_value_t <__maybe_const<_Const, _Views>...>;
257257 using difference_type = common_type_t <range_difference_t <__maybe_const<_Const, _Views>>...>;
258- using base_iter = variant<iterator_t <__maybe_const<_Const, _Views>>...>;
258+ using __base_iter = variant<iterator_t <__maybe_const<_Const, _Views>>...>;
259259
260- base_iter it_;
260+ __base_iter it_;
261261 __maybe_const<_Const, concat_view>* parent_ = nullptr ;
262262
263263 template <std::size_t _Idx>
264- _LIBCPP_HIDE_FROM_ABI constexpr void satisfy () {
264+ _LIBCPP_HIDE_FROM_ABI constexpr void __satisfy () {
265265 if constexpr (_Idx < (sizeof ...(_Views) - 1 )) {
266266 if (std::get<_Idx>(it_) == ranges::end (std::get<_Idx>(parent_->__views_ ))) {
267267 it_.template emplace <_Idx + 1 >(ranges::begin (std::get<_Idx + 1 >(parent_->__views_ )));
268- satisfy <_Idx + 1 >();
268+ __satisfy <_Idx + 1 >();
269269 }
270270 }
271271 }
272272
273273 template <std::size_t _Idx>
274- _LIBCPP_HIDE_FROM_ABI constexpr void prev () {
274+ _LIBCPP_HIDE_FROM_ABI constexpr void __prev () {
275275 if constexpr (_Idx == 0 ) {
276276 --std::get<0 >(it_);
277277 } else {
278278 if (std::get<_Idx>(it_) == ranges::begin (std::get<_Idx>(parent_->__views_ ))) {
279- using prev_view = __maybe_const<_Const, tuple_element_t <_Idx - 1 , tuple<_Views...>>>;
280- if constexpr (common_range<prev_view >) {
279+ using __prev_view = __maybe_const<_Const, tuple_element_t <_Idx - 1 , tuple<_Views...>>>;
280+ if constexpr (common_range<__prev_view >) {
281281 it_.template emplace <_Idx - 1 >(ranges::end (std::get<_Idx - 1 >(parent_->__views_ )));
282282 } else {
283283 it_.template emplace <_Idx - 1 >(ranges::__next (ranges::begin (std::get<_Idx - 1 >(parent_->__views_ )),
284284 ranges::size (std::get<_Idx - 1 >(parent_->__views_ ))));
285285 }
286- prev <_Idx - 1 >();
286+ __prev <_Idx - 1 >();
287287 } else {
288288 --std::get<_Idx>(it_);
289289 }
290290 }
291291 }
292292
293293 template <std::size_t _Idx>
294- _LIBCPP_HIDE_FROM_ABI constexpr void advance_fwd (difference_type __offset, difference_type __steps) {
295- using underlying_diff_type = iter_difference_t <variant_alternative_t <_Idx, base_iter >>;
294+ _LIBCPP_HIDE_FROM_ABI constexpr void __advance_fwd (difference_type __offset, difference_type __steps) {
295+ using underlying_diff_type = iter_difference_t <variant_alternative_t <_Idx, __base_iter >>;
296296 if constexpr (_Idx == sizeof ...(_Views) - 1 ) {
297297 std::get<_Idx>(it_) += static_cast <underlying_diff_type>(__steps);
298298 } else {
@@ -301,14 +301,14 @@ class concat_view<_Views...>::__iterator {
301301 std::get<_Idx>(it_) += static_cast <underlying_diff_type>(__steps);
302302 } else {
303303 it_.template emplace <_Idx + 1 >(ranges::begin (std::get<_Idx + 1 >(parent_->__views_ )));
304- advance_fwd <_Idx + 1 >(0 , __offset + __steps - __n_size);
304+ __advance_fwd <_Idx + 1 >(0 , __offset + __steps - __n_size);
305305 }
306306 }
307307 }
308308
309309 template <std::size_t _Idx>
310- _LIBCPP_HIDE_FROM_ABI constexpr void advance_bwd (difference_type __offset, difference_type __steps) {
311- using underlying_diff_type = iter_difference_t <variant_alternative_t <_Idx, base_iter >>;
310+ _LIBCPP_HIDE_FROM_ABI constexpr void __advance_bwd (difference_type __offset, difference_type __steps) {
311+ using underlying_diff_type = iter_difference_t <variant_alternative_t <_Idx, __base_iter >>;
312312 if constexpr (_Idx == 0 ) {
313313 std::get<_Idx>(it_) -= static_cast <underlying_diff_type>(__steps);
314314 } else {
@@ -317,33 +317,33 @@ class concat_view<_Views...>::__iterator {
317317 } else {
318318 auto __prev_size = ranges::__distance (std::get<_Idx - 1 >(parent_->__views_ ));
319319 it_.template emplace <_Idx - 1 >(ranges::begin (std::get<_Idx - 1 >(parent_->__views_ )) + __prev_size);
320- advance_bwd <_Idx - 1 >(__prev_size, __steps - __offset);
320+ __advance_bwd <_Idx - 1 >(__prev_size, __steps - __offset);
321321 }
322322 }
323323 }
324324
325325 template <size_t ... _Is, typename _Func>
326- _LIBCPP_HIDE_FROM_ABI constexpr void
327- apply_fn_with_const_index (size_t __index, _Func&& __func, std::index_sequence<_Is...>) {
328- ((__index == _Is ? (__func (std::integral_constant<size_t , _Is>{}), 0 ) : 0 ), ...);
326+ _LIBCPP_HIDE_FROM_ABI constexpr void __apply_at_index (size_t __index, _Func&& __func, index_sequence<_Is...>) {
327+ ((__index == _Is ? (__func (integral_constant<size_t , _Is>{}), 0 ) : 0 ), ...);
329328 }
330329
331330 template <size_t _Idx, typename _Func>
332- _LIBCPP_HIDE_FROM_ABI constexpr void apply_fn_with_const_index (size_t __index, _Func&& __func) {
333- apply_fn_with_const_index (__index, std::forward<_Func>(__func), std:: make_index_sequence<_Idx>{});
331+ _LIBCPP_HIDE_FROM_ABI constexpr void __apply_at_index (size_t __index, _Func&& __func) {
332+ __apply_at_index (__index, std::forward<_Func>(__func), make_index_sequence<_Idx>{});
334333 }
335334
336335 template <class ... _Args>
337336 _LIBCPP_HIDE_FROM_ABI explicit constexpr __iterator (__maybe_const<_Const, concat_view>* __parent, _Args&&... __args)
338- requires constructible_from<base_iter , _Args&&...>
337+ requires constructible_from<__base_iter , _Args&&...>
339338 : it_(std::forward<_Args>(__args)...), parent_(__parent) {}
340339
341340public:
342341 _LIBCPP_HIDE_FROM_ABI __iterator () = default;
343342
344343 _LIBCPP_HIDE_FROM_ABI constexpr __iterator (__iterator<!_Const> __i)
345344 requires _Const && (convertible_to<iterator_t <_Views>, iterator_t <const _Views>> && ...)
346- : it_(base_iter(in_place_index<__i.index()>, std::get<__i.index()>(std::move(__i.it_)))), parent_(__i.parent_) {}
345+ : it_(__base_iter(in_place_index<__i.index()>, std::get<__i.index()>(std::move(__i.it_)))),
346+ parent_(__i.parent_) {}
347347
348348 _LIBCPP_HIDE_FROM_ABI constexpr decltype (auto ) operator*() const {
349349 using reference = __concat_reference_t <__maybe_const<_Const, _Views>...>;
@@ -352,10 +352,10 @@ class concat_view<_Views...>::__iterator {
352352
353353 _LIBCPP_HIDE_FROM_ABI constexpr __iterator& operator ++() {
354354 size_t __active_index = it_.index ();
355- apply_fn_with_const_index <std::variant_size_v<decltype (it_)>>(__active_index, [&](auto __index_constant) {
355+ __apply_at_index <std::variant_size_v<decltype (it_)>>(__active_index, [&](auto __index_constant) {
356356 constexpr size_t __i = __index_constant.value ;
357357 ++std::get<__i>(it_);
358- satisfy <__i>();
358+ __satisfy <__i>();
359359 });
360360 return *this ;
361361 }
@@ -374,9 +374,9 @@ class concat_view<_Views...>::__iterator {
374374 requires __concat_is_bidirectional<_Const, _Views...>
375375 {
376376 size_t __active_index = it_.index ();
377- apply_fn_with_const_index <std::variant_size_v<decltype (it_)>>(__active_index, [&](auto __index_constant) {
377+ __apply_at_index <std::variant_size_v<decltype (it_)>>(__active_index, [&](auto __index_constant) {
378378 constexpr size_t __i = __index_constant.value ;
379- prev <__i>();
379+ __prev <__i>();
380380 });
381381 return *this ;
382382 }
@@ -422,12 +422,12 @@ class concat_view<_Views...>::__iterator {
422422 if (__n > 0 ) {
423423 std::visit (
424424 [&](auto & __active_it) {
425- apply_fn_with_const_index <std::tuple_size_v<decltype (parent_->__views_ )>>(
425+ __apply_at_index <std::tuple_size_v<decltype (parent_->__views_ )>>(
426426 __active_index, [&](auto __index_constant) {
427427 constexpr size_t __i = __index_constant.value ;
428428 auto & __active_view = std::get<__i>(parent_->__views_ );
429429 difference_type __idx = __active_it - ranges::begin (__active_view);
430- advance_fwd <__i>(__idx, __n);
430+ __advance_fwd <__i>(__idx, __n);
431431 });
432432 },
433433 it_);
@@ -436,12 +436,12 @@ class concat_view<_Views...>::__iterator {
436436 else if (__n < 0 ) {
437437 std::visit (
438438 [&](auto & __active_it) {
439- apply_fn_with_const_index <std::tuple_size_v<decltype (parent_->__views_ )>>(
439+ __apply_at_index <std::tuple_size_v<decltype (parent_->__views_ )>>(
440440 __active_index, [&](auto __index_constant) {
441441 constexpr size_t __i = __index_constant.value ;
442442 auto & __active_view = std::get<__i>(parent_->__views_ );
443443 difference_type __idx = __active_it - ranges::begin (__active_view);
444- advance_bwd <__i>(__idx, -__n);
444+ __advance_bwd <__i>(__idx, -__n);
445445 });
446446 },
447447 it_);
@@ -541,12 +541,12 @@ class concat_view<_Views...>::__iterator {
541541 if (__ix > __iy) {
542542 std::visit (
543543 [&](auto & __it_x, auto & __it_y) {
544- __it_x.apply_fn_with_const_index <tuple_size_v<decltype (__x.parent_ ->__views_ )>>(
544+ __it_x.template __apply_at_index <tuple_size_v<decltype (__x.parent_ ->__views_ )>>(
545545 __ix, [&](auto __index_constant_x) {
546546 constexpr size_t __index_x = __index_constant_x.value ;
547547 auto __dx = ranges::__distance (ranges::begin (std::get<__index_x>(__x.parent_ ->__views_ )), __it_x);
548548
549- __it_y.apply_fn_with_const_index <tuple_size_v<decltype (__y.parent_ ->__views_ )>>(
549+ __it_y.template __apply_at_index <tuple_size_v<decltype (__y.parent_ ->__views_ )>>(
550550 __iy, [&](auto __index_constant_y) {
551551 constexpr size_t __index_y = __index_constant_y.value ;
552552 auto __dy =
@@ -584,7 +584,7 @@ class concat_view<_Views...>::__iterator {
584584 size_t __ix = __x.it_ .index ();
585585 std::visit (
586586 [&](auto & __it_x) {
587- __it_x.apply_fn_with_const_index <std:: tuple_size_v<decltype (__x.parent_ ->__views_ )>>(
587+ __it_x.template __apply_at_index < tuple_size_v<decltype (__x.parent_ ->__views_ )>>(
588588 __ix, [&](auto __index_constant) {
589589 constexpr size_t __index_x = __index_constant.value ;
590590 auto __dx = ranges::__distance (ranges::begin (std::get<__index_x>(__x.parent_ ->__views_ )), __it_x);
0 commit comments