[PATCH 4/10] libstdc++: Use reserved names for template parameters in PSTL code

Tomasz Kaminski tkaminsk@redhat.com
Tue Dec 1 08:51:58 GMT 2026


On Fri, Nov 27, 2026 at 10:54 PM Jonathan Wakely <jwakely@redhat.com> wrote:

> Fix uses of non-reserved names such as 'T' and 'x' in pstl headers. Also
> replace some cases of reserved names like '_T' which our local policy
> says must be at least two characters, e.g. '_Tp' or '_Ts'.
>
> libstdc++-v3/ChangeLog:
>
>         * include/pstl/algorithm_fwd.h: Use reserved names.
>         * include/pstl/algorithm_impl.h: Likewise.
>         * include/pstl/execution_defs.h: Likewise.
>         * include/pstl/iterator_impl.h: Likewise.
>         * include/pstl/numeric_impl.h: Likewise.
>         * include/pstl/parallel_backend_tbb.h: Likewise.
>         * include/pstl/tuple_impl.h: Likewise.
>         * include/pstl/unseq_backend_simd.h: Likewise.
>         * include/pstl/utils.h: Likewise.
> ---
>
> Tested x86_64-linux.
>
>  libstdc++-v3/include/pstl/algorithm_fwd.h     |   8 +-
>  libstdc++-v3/include/pstl/algorithm_impl.h    |  34 +-
>  libstdc++-v3/include/pstl/execution_defs.h    |  20 +-
>  libstdc++-v3/include/pstl/iterator_impl.h     |  76 +--
>  libstdc++-v3/include/pstl/numeric_impl.h      |   4 +-
>  .../include/pstl/parallel_backend_tbb.h       |  90 +--
>  libstdc++-v3/include/pstl/tuple_impl.h        | 536 +++++++++---------
>  .../include/pstl/unseq_backend_simd.h         |  28 +-
>  libstdc++-v3/include/pstl/utils.h             | 112 ++--
>  9 files changed, 454 insertions(+), 454 deletions(-)
>
> diff --git a/libstdc++-v3/include/pstl/algorithm_fwd.h
> b/libstdc++-v3/include/pstl/algorithm_fwd.h
> index 6333d13293a0..7d7ffa7e97e2 100644
> --- a/libstdc++-v3/include/pstl/algorithm_fwd.h
> +++ b/libstdc++-v3/include/pstl/algorithm_fwd.h
> @@ -892,12 +892,12 @@ _RandomAccessIterator
>  __pattern_generate(__parallel_tag<_IsVector>, _ExecutionPolicy&&,
> _RandomAccessIterator, _RandomAccessIterator,
>                     _Generator);
>
> -template <class _RandomAccessIterator, class Size, class _Generator>
> -_RandomAccessIterator __brick_generate_n(_RandomAccessIterator, Size,
> _Generator,
> +template <class _RandomAccessIterator, class _Size, class _Generator>
> +_RandomAccessIterator __brick_generate_n(_RandomAccessIterator, _Size,
> _Generator,
>                                           /* is_vector = */
> ::std::true_type) noexcept;
>
> -template <class OutputIterator, class Size, class _Generator>
> -OutputIterator __brick_generate_n(OutputIterator, Size, _Generator,
> +template <class _OutputIterator, class _Size, class _Generator>
> +  _OutputIterator __brick_generate_n(_OutputIterator, _Size, _Generator,
>                                    /* is_vector = */ ::std::false_type)
> noexcept;
>
>  template <class _Tag, class _ExecutionPolicy, class _OutputIterator,
> class _Size, class _Generator>
> diff --git a/libstdc++-v3/include/pstl/algorithm_impl.h
> b/libstdc++-v3/include/pstl/algorithm_impl.h
> index 69d28c961f90..d2190af7e542 100644
> --- a/libstdc++-v3/include/pstl/algorithm_impl.h
> +++ b/libstdc++-v3/include/pstl/algorithm_impl.h
> @@ -309,9 +309,9 @@ __pattern_walk2(__parallel_forward_tag,
> _ExecutionPolicy&& __exec, _ForwardItera
>      using __backend_tag = typename __parallel_forward_tag::__backend_tag;
>
>      return __internal::__except_handler([&]() {
> -        using _iterator_tuple = zip_forward_iterator<_ForwardIterator1,
> _ForwardIterator2>;
> -        auto __begin = _iterator_tuple(__first1, __first2);
> -        auto __end = _iterator_tuple(__last1, /*dummy parameter*/
> _ForwardIterator2());
> +        using _Iterator_tuple = _Zip_forward_iterator<_ForwardIterator1,
> _ForwardIterator2>;
> +        auto __begin = _Iterator_tuple(__first1, __first2);
> +        auto __end = _Iterator_tuple(__last1, /*dummy parameter*/
> _ForwardIterator2());
>
>          using _ReferenceType1 = typename
> std::iterator_traits<_ForwardIterator1>::reference;
>          using _ReferenceType2 = typename
> std::iterator_traits<_ForwardIterator2>::reference;
> @@ -386,9 +386,9 @@ __pattern_walk2_brick(__parallel_forward_tag,
> _ExecutionPolicy&& __exec, _Forwar
>  {
>      using __backend_tag = typename __parallel_forward_tag::__backend_tag;
>
> -    using _iterator_tuple = zip_forward_iterator<_ForwardIterator1,
> _ForwardIterator2>;
> -    auto __begin = _iterator_tuple(__first1, __first2);
> -    auto __end = _iterator_tuple(__last1, /*dummy parameter*/
> _ForwardIterator2());
> +    using _Iterator_tuple = _Zip_forward_iterator<_ForwardIterator1,
> _ForwardIterator2>;
> +    auto __begin = _Iterator_tuple(__first1, __first2);
> +    auto __end = _Iterator_tuple(__last1, /*dummy parameter*/
> _ForwardIterator2());
>
>      using _ReferenceType1 = typename
> std::iterator_traits<_ForwardIterator1>::reference;
>      using _ReferenceType2 = typename
> std::iterator_traits<_ForwardIterator2>::reference;
> @@ -500,9 +500,9 @@ __pattern_walk3(__parallel_forward_tag,
> _ExecutionPolicy&& __exec, _ForwardItera
>      using __backend_tag = typename __parallel_forward_tag::__backend_tag;
>
>      return __internal::__except_handler([&]() {
> -        using _iterator_tuple = zip_forward_iterator<_ForwardIterator1,
> _ForwardIterator2, _ForwardIterator3>;
> -        auto __begin = _iterator_tuple(__first1, __first2, __first3);
> -        auto __end = _iterator_tuple(__last1, /*dummy parameter*/
> _ForwardIterator2(),
> +        using _Iterator_tuple = _Zip_forward_iterator<_ForwardIterator1,
> _ForwardIterator2, _ForwardIterator3>;
> +        auto __begin = _Iterator_tuple(__first1, __first2, __first3);
> +        auto __end = _Iterator_tuple(__last1, /*dummy parameter*/
> _ForwardIterator2(),
>                                       /*dummy parameter*/
> _ForwardIterator3());
>
>          using _ReferenceType1 = typename
> std::iterator_traits<_ForwardIterator1>::reference;
> @@ -2996,17 +2996,17 @@ __pattern_generate(__parallel_tag<_IsVector>,
> _ExecutionPolicy&& __exec, _Random
>      });
>  }
>
> -template <class _RandomAccessIterator, class Size, class _Generator>
> +template <class _RandomAccessIterator, class _Size, class _Generator>
>  _RandomAccessIterator
> -__brick_generate_n(_RandomAccessIterator __first, Size __count,
> _Generator __g,
> +__brick_generate_n(_RandomAccessIterator __first, _Size __count,
> _Generator __g,
>                     /* is_vector = */ ::std::true_type) noexcept
>  {
>      return __unseq_backend::__simd_generate_n(__first, __count, __g);
>  }
>
> -template <class OutputIterator, class Size, class _Generator>
> -OutputIterator
> -__brick_generate_n(OutputIterator __first, Size __count, _Generator __g,
> /* is_vector = */ ::std::false_type) noexcept
> +template <class _OutputIterator, class _Size, class _Generator>
> +  _OutputIterator
> +__brick_generate_n(_OutputIterator __first, _Size __count, _Generator
> __g, /* is_vector = */ ::std::false_type) noexcept
>  {
>      return ::std::generate_n(__first, __count, __g);
>  }
> @@ -4001,12 +4001,12 @@ struct _ParallelSetOpScanPred
>
>      // Move it1 forward by n, but not beyond it2
>      template <typename _RandomAccessIterator,
> -              typename Size = typename
> std::iterator_traits<_RandomAccessIterator>::difference_type>
> +              typename _Size = typename
> std::iterator_traits<_RandomAccessIterator>::difference_type>
>      _RandomAccessIterator
> -    __advance_clamped(_RandomAccessIterator __begin, Size __n,
> _RandomAccessIterator __end) const
> +    __advance_clamped(_RandomAccessIterator __begin, _Size __n,
> _RandomAccessIterator __end) const
>      {
>          assert(__begin <= __end);
> -        using _CommonSize = std::common_type_t<decltype(__end - __begin),
> Size>;
> +        using _CommonSize = std::common_type_t<decltype(__end - __begin),
> _Size>;
>          return __begin + std::min<_CommonSize>(__end - __begin, __n);
>      }
>  };
> diff --git a/libstdc++-v3/include/pstl/execution_defs.h
> b/libstdc++-v3/include/pstl/execution_defs.h
> index e8423a746733..b9b7f3fc0785 100644
> --- a/libstdc++-v3/include/pstl/execution_defs.h
> +++ b/libstdc++-v3/include/pstl/execution_defs.h
> @@ -52,7 +52,7 @@ inline constexpr parallel_unsequenced_policy par_unseq{};
>  inline constexpr unsequenced_policy unseq{};
>
>  // 2.3, Execution policy type trait
> -template <class T>
> +template <class _Tp>
>  struct is_execution_policy : ::std::false_type
>  {
>  };
> @@ -74,8 +74,8 @@ struct
> is_execution_policy<__onedpl::execution::unsequenced_policy> : ::std::tru
>  {
>  };
>
> -template <class T>
> -inline constexpr bool is_execution_policy_v =
> __onedpl::execution::is_execution_policy<T>::value;
> +template <class _Tp>
> +inline constexpr bool is_execution_policy_v =
> __onedpl::execution::is_execution_policy<_Tp>::value;
>
>  } // namespace _V1
>  } // namespace execution
> @@ -87,7 +87,7 @@ namespace __internal
>  {
>
>  // Extension: host execution policy type trait
> -template <class _T>
> +template <class _Tp>
>  struct __is_host_execution_policy : ::std::false_type
>  {
>  };
> @@ -109,18 +109,18 @@ struct
> __is_host_execution_policy<__onedpl::execution::unsequenced_policy> : ::s
>  {
>  };
>
> -template <class _ExecPolicy, class _T = void>
> +template <class _ExecPolicy, class _Tp = void>
>  using __enable_if_execution_policy =
> -
> std::enable_if_t<__onedpl::is_execution_policy_v<std::decay_t<_ExecPolicy>>,
> _T>;
> +
> std::enable_if_t<__onedpl::is_execution_policy_v<std::decay_t<_ExecPolicy>>,
> _Tp>;
>
> -template <typename _ExecPolicy, typename _T>
> +template <typename _ExecPolicy, typename _Tp>
>  struct __ref_or_copy_impl
>  {
> -    using type = _T&;
> +    using type = _Tp&;
>  };
>
> -template <typename _ExecPolicy, typename _T>
> -using __ref_or_copy = typename
> __ref_or_copy_impl<::std::decay_t<_ExecPolicy>, _T>::type;
> +template <typename _ExecPolicy, typename _Tp>
> +using __ref_or_copy = typename
> __ref_or_copy_impl<::std::decay_t<_ExecPolicy>, _Tp>::type;
>
>  //------------------------------------------------------------------------
>  // backend tags
> diff --git a/libstdc++-v3/include/pstl/iterator_impl.h
> b/libstdc++-v3/include/pstl/iterator_impl.h
> index 7a5b296e2e5b..59d214ac5884 100644
> --- a/libstdc++-v3/include/pstl/iterator_impl.h
> +++ b/libstdc++-v3/include/pstl/iterator_impl.h
> @@ -87,21 +87,21 @@ struct __is_legacy_passed_directly<_Iter,
> std::enable_if_t<_Iter::is_passed_dire
>  template <typename _T>
>  struct __is_reversed_indirectly_device_accessible_it;
>
> -template <typename T>
> -constexpr auto is_onedpl_indirectly_device_accessible(T)
> +template <typename _Tp>
> +constexpr auto __is_onedpl_indirectly_device_accessible_chk(_Tp)
>      -> std::disjunction<
>  #if _ONEDPL_BACKEND_SYCL
> -
> __onedpl::__internal::__is_known_usm_vector_iter<std::decay_t<T>>,
>    // USM vector iterator
> +
> __onedpl::__internal::__is_known_usm_vector_iter<std::decay_t<_Tp>>,
>      // USM vector iterator
>  #endif // _ONEDPL_BACKEND_SYCL
> -        std::is_pointer<std::decay_t<T>>,
>                  // USM pointer
> -
> __onedpl::__internal::__is_legacy_passed_directly<std::decay_t<T>>,
>     // legacy passed directly iter
> -
> __onedpl::__internal::__is_reversed_indirectly_device_accessible_it<std::decay_t<T>>>;
> // reverse iterator
> +        std::is_pointer<std::decay_t<_Tp>>,
>                    // USM pointer
> +
> __onedpl::__internal::__is_legacy_passed_directly<std::decay_t<_Tp>>,
>       // legacy passed directly iter
> +
> __onedpl::__internal::__is_reversed_indirectly_device_accessible_it<std::decay_t<_Tp>>>;
> // reverse iterator
>
>  struct __is_onedpl_indirectly_device_accessible_fn
>  {
> -    template <typename T>
> +    template <typename _Tp>
>      constexpr auto
> -    operator()(T t) const ->
> decltype(is_onedpl_indirectly_device_accessible(t));
> +    operator()(_Tp __t) const ->
> decltype(__is_onedpl_indirectly_device_accessible_chk(__t));
>  };
>
>  inline constexpr __is_onedpl_indirectly_device_accessible_fn
> __is_onedpl_indirectly_device_accessible;
> @@ -109,12 +109,12 @@ inline constexpr
> __is_onedpl_indirectly_device_accessible_fn __is_onedpl_indirec
>  //zip_iterator version for forward iterator
>  //== and != comparison is performed only on the first element of the tuple
>  //
> -//zip_forward_iterator is implemented as an internal class and should
> remain so. Users should never encounter
> +//_Zip_forward_iterator is implemented as an internal class and should
> remain so. Users should never encounter
>  //this class or be returned a type of its value_type, reference, etc as
> the tuple-like type used internally
>  //is variable dependent on the C++ standard library version and could
> cause an inconsistent ABI due to resulting
>  //layout changes of this class.
>  template <typename... _Types>
> -class zip_forward_iterator
> +class _Zip_forward_iterator
>
I do not understand why this change is made. If it is needed, because
zip_forward_iterator is not name reserved by
standard, then the same applies to the discarding and permutation iterators
also defined below.

>  {
>      template <typename... _Ts>
>      using __tuple_t =
> @@ -134,8 +134,8 @@ class zip_forward_iterator
>      using pointer = __tuple_t<typename
> std::iterator_traits<_Types>::pointer...>;
>      using iterator_category = std::forward_iterator_tag;
>
> -    zip_forward_iterator() : __my_it_() {}
> -    explicit zip_forward_iterator(_Types... __args) :
> __my_it_(__tuple_t<_Types...>{__args...}) {}
> +    _Zip_forward_iterator() : __my_it_() {}
> +    explicit _Zip_forward_iterator(_Types... __args) :
> __my_it_(__tuple_t<_Types...>{__args...}) {}
>
>      // On windows, this requires clause is necessary so that concepts in
> MSVC STL do not detect the iterator as
>      // dereferenceable when a source iterator is a sycl_iterator, which
> is a supported type.
> @@ -145,27 +145,27 @@ class zip_forward_iterator
>          return __make_references<reference>()(__my_it_,
> ::std::make_index_sequence<__num_types>());
>      }
>
> -    zip_forward_iterator&
> +    _Zip_forward_iterator&
>      operator++()
>      {
>          __tuple_util<__num_types>::__pre_increment(__my_it_);
>          return *this;
>      }
> -    zip_forward_iterator
> +    _Zip_forward_iterator
>      operator++(int)
>      {
> -        zip_forward_iterator __it(*this);
> +        _Zip_forward_iterator __it(*this);
>          ++(*this);
>          return __it;
>      }
>
>      bool
> -    operator==(const zip_forward_iterator& __it) const
> +    operator==(const _Zip_forward_iterator& __it) const
>      {
>          return ::std::get<0>(__my_it_) == ::std::get<0>(__it.__my_it_);
>      }
>      bool
> -    operator!=(const zip_forward_iterator& __it) const
> +    operator!=(const _Zip_forward_iterator& __it) const
>      {
>          return !(*this == __it);
>      }
> @@ -186,19 +186,19 @@ class zip_forward_iterator
>  namespace std::__onedpl
>  {
>
> -template <typename T>
> +template <typename _Tp>
>  struct is_indirectly_device_accessible
> -    :
> decltype(__onedpl::__internal::__is_onedpl_indirectly_device_accessible(std::declval<T>()))
> +    :
> decltype(__onedpl::__internal::__is_onedpl_indirectly_device_accessible(std::declval<_Tp>()))
>  {
>
>  static_assert(std::is_same_v<decltype(decltype(__onedpl::__internal::__is_onedpl_indirectly_device_accessible(
> -                                     std::declval<T>()))::value),
> +                                     std::declval<_Tp>()))::value),
>                                   const bool>,
> -                  "Return type of is_onedpl_indirectly_device_accessible
> does not have the characteristics of a "
> +                  "Return type of
> __is_onedpl_indirectly_device_accessible does not have the characteristics
> of a "
>                    "bool_constant");
>  };
>
> -template <typename T>> -inline constexpr bool is_indirectly_device_accessible_v =
> is_indirectly_device_accessible<T>::value;
> +template <typename _Tp>
> +inline constexpr bool is_indirectly_device_accessible_v =
> is_indirectly_device_accessible<_Tp>::value;
>
>  template <typename _Ip>
>  class counting_iterator
> @@ -310,7 +310,7 @@ class counting_iterator
>      }
>
>      friend std::true_type
> -    is_onedpl_indirectly_device_accessible(counting_iterator)
> +    __is_onedpl_indirectly_device_accessible(counting_iterator)
>      {
>          return {}; //minimal body provided to avoid warnings of
> non-template-friend in g++
>      }
> @@ -448,7 +448,7 @@ class zip_iterator
>      }
>
>      friend auto
> -    is_onedpl_indirectly_device_accessible(zip_iterator)
> +    __is_onedpl_indirectly_device_accessible(zip_iterator)
>          ->
> std::conjunction<__onedpl::is_indirectly_device_accessible<_Types>...>
>      {
>          return {}; //minimal body provided to avoid warnings of
> non-template-friend in g++
> @@ -631,7 +631,7 @@ class transform_iterator
>          return __my_unary_func_;
>      }
>      friend auto
> -    is_onedpl_indirectly_device_accessible(transform_iterator) ->
> __onedpl::is_indirectly_device_accessible<_Iter>
> +    __is_onedpl_indirectly_device_accessible(transform_iterator) ->
> __onedpl::is_indirectly_device_accessible<_Iter>
>      {
>          return {}; //minimal body provided to avoid warnings of
> non-template-friend in g++
>      }
> @@ -826,7 +826,7 @@ class permutation_iterator
>      }
>
>      friend auto
> -    is_onedpl_indirectly_device_accessible(permutation_iterator)
> +    __is_onedpl_indirectly_device_accessible(permutation_iterator)
>          ->
> std::conjunction<__onedpl::is_indirectly_device_accessible<SourceIterator>,
>
>  __onedpl::is_indirectly_device_accessible<permutation_iterator::IndexMap>>
>      {
> @@ -852,21 +852,21 @@ struct ignore_copyable
>  {
>      constexpr ignore_copyable() = default;
>
> -    template <typename T>
> -    constexpr ignore_copyable(T&&)
> +    template <typename _Tp>
> +    constexpr ignore_copyable(_Tp&&)
>      {
>      }
>
> -    template <typename T>
> +    template <typename _Tp>
>      constexpr ignore_copyable&
> -    operator=(T&&)
> +    operator=(_Tp&&)
>      {
>          return *this;
>      }
>
> -    template <typename T>
> +    template <typename _Tp>
>      constexpr const ignore_copyable&
> -    operator=(T&&) const
> +    operator=(_Tp&&) const
>      {
>          return *this;
>      }
> @@ -1003,7 +1003,7 @@ class discard_iterator
>      }
>
>      friend std::true_type
> -    is_onedpl_indirectly_device_accessible(discard_iterator)
> +    __is_onedpl_indirectly_device_accessible(discard_iterator)
>      {
>          return {}; //minimal body provided to avoid warnings of
> non-template-friend in g++
>      }
> @@ -1043,12 +1043,12 @@ struct make_zipiterator_functor
>  // after applying a functor to each element of a tuple
>  // we may need to get a zip iterator
>
> -template <typename F, template <typename...> class TBig, typename... T,
> typename... RestTuples>
> +template <typename _Fn, template <typename...> class _TBig, typename...
> _Tp, typename... _RestTuples>
>  auto
> -map_zip(F f, TBig<T...> in, RestTuples... rest)
> -    -> decltype(map_tuple_impl(make_zipiterator_functor{},
> ::std::make_index_sequence<sizeof...(T)>(), in, rest...))
> +map_zip(_Fn __f, _TBig<_Tp...> __in, _RestTuples... __rest)
> +    -> decltype(__map_tuple_impl(make_zipiterator_functor{},
> ::std::make_index_sequence<sizeof...(_Tp)>(), __in, __rest...))
>  {
> -    return map_tuple_impl(make_zipiterator_functor{}, f,
> ::std::make_index_sequence<sizeof...(T)>(), in, rest...);
> +    return __map_tuple_impl(make_zipiterator_functor{}, __f,
> ::std::make_index_sequence<sizeof...(_Tp)>(), __in, __rest...);
>  }
>
>  } // namespace __internal
> diff --git a/libstdc++-v3/include/pstl/numeric_impl.h
> b/libstdc++-v3/include/pstl/numeric_impl.h
> index a8dddb771f44..b050c23b0d57 100644
> --- a/libstdc++-v3/include/pstl/numeric_impl.h
> +++ b/libstdc++-v3/include/pstl/numeric_impl.h
> @@ -356,10 +356,10 @@ __brick_adjacent_difference(_ForwardIterator
> __first, _ForwardIterator __last, _
>      return ::std::adjacent_difference(__first, __last, __d_first, __op);
>  }
>
> -template <class _RandomAccessIterator1, class _RandomAccessIterator2,
> class BinaryOperation>
> +template <class _RandomAccessIterator1, class _RandomAccessIterator2,
> class _BinaryOperation>
>  _RandomAccessIterator2
>  __brick_adjacent_difference(_RandomAccessIterator1 __first,
> _RandomAccessIterator1 __last,
> -                            _RandomAccessIterator2 __d_first,
> BinaryOperation __op,
> +                            _RandomAccessIterator2 __d_first,
> _BinaryOperation __op,
>                              /*is_vector=*/::std::true_type) noexcept
>  {
>      assert(__first != __last);
> diff --git a/libstdc++-v3/include/pstl/parallel_backend_tbb.h
> b/libstdc++-v3/include/pstl/parallel_backend_tbb.h
> index 8d41fb92fc2f..8f3ca199333f 100644
> --- a/libstdc++-v3/include/pstl/parallel_backend_tbb.h
> +++ b/libstdc++-v3/include/pstl/parallel_backend_tbb.h
> @@ -736,16 +736,16 @@ class __merge_func
>      _LeafMerge _M_leaf_merge;
>      _SizeType _M_nsort; //number of elements to be sorted for
> partial_sort algorithm
>
> -    bool _root;   //means a task is merging root task
> -    bool _x_orig; //"true" means X(or left ) subrange is in the original
> container; false - in the buffer
> -    bool _y_orig; //"true" means Y(or right) subrange is in the original
> container; false - in the buffer
> -    bool _split;  //"true" means a merge task is a split task for
> parallel merging, the execution logic differs
> +    bool _M_root;   //means a task is merging root task
> +    bool _M_x_orig; //"true" means X(or left ) subrange is in the
> original container; false - in the buffer
> +    bool _M_y_orig; //"true" means Y(or right) subrange is in the
> original container; false - in the buffer
> +    bool _M_split;  //"true" means a merge task is a split task for
> parallel merging, the execution logic differs
>
>      struct __move_value
>      {
> -        template <typename Iterator1, typename Iterator2>
> +        template <typename _Iterator1, typename _Iterator2>
>          void
> -        operator()(Iterator1 __x, Iterator2 __z)
> +        operator()(_Iterator1 __x, _Iterator2 __z)
>          {
>              *__z = ::std::move(*__x);
>          }
> @@ -753,9 +753,9 @@ class __merge_func
>
>      struct __move_value_construct
>      {
> -        template <typename Iterator1, typename Iterator2>
> +        template <typename _Iterator1, typename _Iterator2>
>          void
> -        operator()(Iterator1 __x, Iterator2 __z)
> +        operator()(_Iterator1 __x, _Iterator2 __z)
>          {
>              ::new (::std::addressof(*__z)) _ValueType(::std::move(*__x));
>          }
> @@ -763,9 +763,9 @@ class __merge_func
>
>      struct __move_range
>      {
> -        template <typename Iterator1, typename Iterator2>
> -        Iterator2
> -        operator()(Iterator1 __first1, Iterator1 __last1, Iterator2
> __first2)
> +        template <typename _Iterator1, typename _Iterator2>
> +         _Iterator2
> +        operator()(_Iterator1 __first1, _Iterator1 __last1, _Iterator2
> __first2)
>          {
>              if (__last1 - __first1 < __merge_cut_off)
>                  return ::std::move(__first1, __last1, __first2);
> @@ -782,9 +782,9 @@ class __merge_func
>
>      struct __move_range_construct
>      {
> -        template <typename Iterator1, typename Iterator2>
> -        Iterator2
> -        operator()(Iterator1 __first1, Iterator1 __last1, Iterator2
> __first2)
> +        template <typename _Iterator1, typename _Iterator2>
> +         _Iterator2
> +        operator()(_Iterator1 __first1, _Iterator1 __last1, _Iterator2
> __first2)
>          {
>              if (__last1 - __first1 < __merge_cut_off)
>              {
> @@ -805,9 +805,9 @@ class __merge_func
>
>      struct __cleanup_range
>      {
> -        template <typename Iterator>
> +        template <typename _Iterator>
>          void
> -        operator()(Iterator __first, Iterator __last)
> +        operator()(_Iterator __first, _Iterator __last)
>          {
>              if (__last - __first < __merge_cut_off)
>                  _Cleanup()(__first, __last);
> @@ -827,8 +827,8 @@ class __merge_func
>                   _Cleanup, _LeafMerge __leaf_merge, _SizeType __nsort,
> _RandomAccessIterator1 __x_beg,
>                   _RandomAccessIterator2 __z_beg, bool __x_orig, bool
> __y_orig, bool __root)
>          : _M_x_beg(__x_beg), _M_z_beg(__z_beg), _M_xs(__xs), _M_xe(__xe),
> _M_ys(__ys), _M_ye(__ye), _M_zs(__zs),
> -          _M_comp(__comp), _M_leaf_merge(__leaf_merge),
> _M_nsort(__nsort), _root(__root), _x_orig(__x_orig),
> -          _y_orig(__y_orig), _split(false)
> +          _M_comp(__comp), _M_leaf_merge(__leaf_merge),
> _M_nsort(__nsort), _M_root(__root), _M_x_orig(__x_orig),
> +          _M_y_orig(__y_orig), _M_split(false)
>      {
>      }
>
> @@ -843,9 +843,9 @@ class __merge_func
>      set_odd(IndexType __idx, bool __on_off)
>      {
>          if (is_left(__idx))
> -            _x_orig = __on_off;
> +            _M_x_orig = __on_off;
>          else
> -            _y_orig = __on_off;
> +            _M_y_orig = __on_off;
>      }
>
>      __task*
> @@ -855,7 +855,7 @@ class __merge_func
>      __merge_func*
>      parent_merge(__task* __self) const
>      {
> -        return _root ? nullptr :
> &static_cast<__func_task<__merge_func>*>(__self->parent())->body();
> +        return _M_root ? nullptr :
> &static_cast<__func_task<__merge_func>*>(__self->parent())->body();
>      }
>      bool
>      x_less_y()
> @@ -869,9 +869,9 @@ class __merge_func
>          auto __kx = std::min(_M_nsort, __nx);
>          [[maybe_unused]] auto __ky = std::min(_M_nsort, __ny);
>
> -        assert(_x_orig == _y_orig);
> +        assert(_M_x_orig == _M_y_orig);
>
> -        if (_x_orig)
> +        if (_M_x_orig)
>          {
>              assert(::std::is_sorted(_M_x_beg + _M_xs, _M_x_beg + _M_xs +
> __kx, _M_comp));
>              assert(::std::is_sorted(_M_x_beg + _M_ys, _M_x_beg + _M_ys +
> __ky, _M_comp));
> @@ -889,7 +889,7 @@ class __merge_func
>          [[maybe_unused]] const auto __ny = (_M_ye - _M_ys);
>          assert(__nx > 0 && __ny > 0);
>
> -        if (_x_orig)
> +        if (_M_x_orig)
>              __move_range_construct()(_M_x_beg + _M_xs, _M_x_beg + _M_xe,
> _M_z_beg + _M_zs);
>          else
>          {
> @@ -898,7 +898,7 @@ class __merge_func
>                  __cleanup_range()(_M_z_beg + _M_zs, _M_z_beg + _M_zs +
> __nx);
>          }
>
> -        _x_orig = !_x_orig;
> +        _M_x_orig = !_M_x_orig;
>      }
>      void
>      move_y_range()
> @@ -906,7 +906,7 @@ class __merge_func
>          const auto __nx = (_M_xe - _M_xs);
>          [[maybe_unused]] const auto __ny = (_M_ye - _M_ys);
>
> -        if (_y_orig)
> +        if (_M_y_orig)
>              __move_range_construct()(_M_x_beg + _M_ys, _M_x_beg + _M_ye,
> _M_z_beg + _M_zs + __nx);
>          else
>          {
> @@ -915,13 +915,13 @@ class __merge_func
>                  __cleanup_range()(_M_z_beg + _M_zs + __nx, _M_z_beg +
> _M_zs + __nx + __ny);
>          }
>
> -        _y_orig = !_y_orig;
> +        _M_y_orig = !_M_y_orig;
>      }
>      __task*
>      merge_ranges(__task* __self)
>      {
>          assert(_M_nsort > 0);
> -        assert(_x_orig == _y_orig); //two merged subrange must be lie
> into the same buffer
> +        assert(_M_x_orig == _M_y_orig); //two merged subrange must be lie
> into the same buffer
>
>          const auto __nx = (_M_xe - _M_xs);
>          const auto __ny = (_M_ye - _M_ys);
> @@ -932,7 +932,7 @@ class __merge_func
>              return split_merging(__self);
>
>          //merge to buffer
> -        if (_x_orig)
> +        if (_M_x_orig)
>          {
>              _M_leaf_merge(_M_x_beg + _M_xs, _M_x_beg + _M_xe, _M_x_beg +
> _M_ys, _M_x_beg + _M_ye, _M_z_beg + _M_zs,
>                            _M_comp, __move_value_construct(),
> __move_value_construct(), __move_range_construct(),
> @@ -942,7 +942,7 @@ class __merge_func
>          //merge to "origin"
>          else
>          {
> -            assert(_x_orig == _y_orig);
> +            assert(_M_x_orig == _M_y_orig);
>
>              _M_leaf_merge(_M_z_beg + _M_xs, _M_z_beg + _M_xe, _M_z_beg +
> _M_ys, _M_z_beg + _M_ye, _M_x_beg + _M_zs,
>                            _M_comp, __move_value(), __move_value(),
> __move_range(), __move_range());
> @@ -959,8 +959,8 @@ class __merge_func
>      __task*
>      process_ranges(__task* __self)
>      {
> -        assert(_x_orig == _y_orig);
> -        assert(!_split);
> +        assert(_M_x_orig == _M_y_orig);
> +        assert(!_M_split);
>
>          auto p = parent_merge(__self);
>
> @@ -970,7 +970,7 @@ class __merge_func
>              //optimization, just for sort algorithm, //{x} <= {y}
>              if (x_less_y()) //we have a solution
>              {
> -                if (!_x_orig)
> +                if (!_M_x_orig)
>                  {                   //we have to move the solution to the
> origin
>                      move_x_range(); //parallel moving
>                      move_y_range(); //parallel moving
> @@ -979,7 +979,7 @@ class __merge_func
>              }
>              //else: if we have data in the origin,
>              //we have to move data to the buffer for final merging into
> the origin.
> -            if (_x_orig)
> +            if (_M_x_orig)
>              {
>                  move_x_range(); //parallel moving
>                  move_y_range(); //parallel moving
> @@ -992,12 +992,12 @@ class __merge_func
>          if (x_less_y())
>          {
>              const auto id_range = _M_zs;
> -            p->set_odd(id_range, _x_orig);
> +            p->set_odd(id_range, _M_x_orig);
>              return nullptr;
>          }
>          //else: we have to revert "_x(y)_orig" flag of the parent merging
> task
>          const auto id_range = _M_zs;
> -        p->set_odd(id_range, !_x_orig);
> +        p->set_odd(id_range, !_M_x_orig);
>
>          return merge_ranges(__self);
>      }
> @@ -1006,7 +1006,7 @@ class __merge_func
>      __task*
>      split_merging(__task* __self)
>      {
> -        assert(_x_orig == _y_orig);
> +        assert(_M_x_orig == _M_y_orig);
>
>          const auto __nx = (_M_xe - _M_xs);
>          const auto __ny = (_M_ye - _M_ys);
> @@ -1017,7 +1017,7 @@ class __merge_func
>          {
>              __ym = _M_ys + __ny / 2;
>
> -            if (_x_orig)
> +            if (_M_x_orig)
>                  __xm = ::std::upper_bound(_M_x_beg + _M_xs, _M_x_beg +
> _M_xs + __nx, *(_M_x_beg + __ym), _M_comp) -
>                         _M_x_beg;
>              else
> @@ -1028,7 +1028,7 @@ class __merge_func
>          {
>              __xm = _M_xs + __nx / 2;
>
> -            if (_y_orig)
> +            if (_M_y_orig)
>                  __ym = ::std::lower_bound(_M_x_beg + _M_ys, _M_x_beg +
> _M_ys + __ny, *(_M_x_beg + __xm), _M_comp) -
>                         _M_x_beg;
>              else
> @@ -1038,15 +1038,15 @@ class __merge_func
>
>          auto __zm = _M_zs + ((__xm - _M_xs) + (__ym - _M_ys));
>          __merge_func __right_func(__xm, _M_xe, __ym, _M_ye, __zm,
> _M_comp, _Cleanup(), _M_leaf_merge, _M_nsort,
> -                                  _M_x_beg, _M_z_beg, _x_orig, _y_orig,
> _root);
> -        __right_func._split = true;
> +                                  _M_x_beg, _M_z_beg, _M_x_orig,
> _M_y_orig, _M_root);
> +        __right_func._M_split = true;
>          auto __merge_task =
> __self->make_additional_child_of(__self->parent(),> ::std::move(__right_func));
>          __self->spawn(__merge_task);
>          __self->recycle_as_continuation();
>
>          _M_xe = __xm;
>          _M_ye = __ym;
> -        _split = true;
> +        _M_split = true;
>
>          return __self;
>      }
> @@ -1060,21 +1060,21 @@ operator()(__task* __self)
>  {
>      //a. split merge task into 2 of the same level; the special logic,
>      //without processing(process_ranges) adjacent sub-ranges x and y
> -    if (_split)
> +    if (_M_split)
>          return merge_ranges(__self);
>
>      //b. General merging of adjacent sub-ranges x and y (with
> optimization in case of {x} <= {y} )
>
>      //1. x and y are in the even buffer
>      //2. x and y are in the odd buffer
> -    if (_x_orig == _y_orig)
> +    if (_M_x_orig == _M_y_orig)
>          return process_ranges(__self);
>
>      //3. x is in even buffer, y is in the odd buffer
>      //4. x is in odd buffer, y is in the even buffer
>      if (!parent_merge(__self))
>      { //root merge task
> -        if (_x_orig)
> +        if (_M_x_orig)
>              move_x_range();
>          else
>              move_y_range();
> diff --git a/libstdc++-v3/include/pstl/tuple_impl.h
> b/libstdc++-v3/include/pstl/tuple_impl.h
> index ed4070da3ce2..0f56cc930f46 100644
> --- a/libstdc++-v3/include/pstl/tuple_impl.h
> +++ b/libstdc++-v3/include/pstl/tuple_impl.h
> @@ -25,23 +25,23 @@ namespace std::__onedpl
>  {
>  namespace __internal
>  {
> -template <typename... T>
> +template <typename... _Tp>
>  struct tuple;
>  } // namespace __internal
>  } // namespace std::__onedpl
>
>  namespace std
>  {
> -template <::std::size_t N, typename T, typename... Rest>
> -struct tuple_element<N, __onedpl::__internal::tuple<T, Rest...>>
> -    : tuple_element<N - 1, __onedpl::__internal::tuple<Rest...>>
> +template <::std::size_t _Nm, typename _Tp, typename... _Rest>
> +struct tuple_element<_Nm, __onedpl::__internal::tuple<_Tp, _Rest...>>
> +    : tuple_element<_Nm - 1, __onedpl::__internal::tuple<_Rest...>>
>  {
>  };
>
> -template <typename T, typename... Rest>
> -struct tuple_element<0, __onedpl::__internal::tuple<T, Rest...>>
> +template <typename _Tp, typename... _Rest>
> +struct tuple_element<0, __onedpl::__internal::tuple<_Tp, _Rest...>>
>  {
> -    using type = T;
> +    using type = _Tp;
>  };
>
>  //forward declare new std::get<I>() functions so they can be used in impl
> @@ -72,24 +72,24 @@ namespace std::__onedpl
>  {
>  namespace __internal
>  {
> -template <typename... Size>
> -struct get_value_by_idx;
> +template <typename... _Size>
> +struct _Get_value_by_idx;
>
> -template <typename T1, typename... T, ::std::size_t... indices>
> -::std::tuple<T...>
> -get_tuple_tail_impl(const ::std::tuple<T1, T...>& t, const
> ::std::index_sequence<indices...>&)
> +template <typename _Tp1, typename... _Tp, ::std::size_t... __indices>
> +::std::tuple<_Tp...>
> +get_tuple_tail_impl(const ::std::tuple<_Tp1, _Tp...>& __t, const
> ::std::index_sequence<__indices...>&)
>  {
> -    return ::std::tuple<T...>(::std::get<indices + 1>(t)...);
> +    return ::std::tuple<_Tp...>(::std::get<__indices + 1>(__t)...);
>  }
>
> -template <typename T1, typename... T>
> -::std::tuple<T...>
> -get_tuple_tail(const ::std::tuple<T1, T...>& other)
> +template <typename _Tp1, typename... _Tp>
> +::std::tuple<_Tp...>
> +get_tuple_tail(const ::std::tuple<_Tp1, _Tp...>& __other)
>  {
> -    return __onedpl::__internal::get_tuple_tail_impl(other,
> ::std::make_index_sequence<sizeof...(T)>());
> +    return __onedpl::__internal::get_tuple_tail_impl(__other,
> ::std::make_index_sequence<sizeof...(_Tp)>());
>  }
>
> -// Maps an incoming type for tuplewrapper to simplify tuple-related
> handling.
> +// Maps an incoming type for _Tuplewrapper to simplify tuple-related
> handling.
>  // as it doesn't work well with rvalue refs.
>  // T& -> T&, T&& -> T, T -> T
>  template <typename _Tp, bool = ::std::is_lvalue_reference_v<_Tp>>
> @@ -104,115 +104,115 @@ struct __lvref_or_val<_Tp, false>
>      using __type = ::std::remove_reference_t<_Tp>;
>  };
>
> -template <typename T>
> -struct MapValue
> +template <typename _Tp>
> +struct _MapValue
>  {
> -    T id;
> -    template <typename T1>
> +    _Tp id;
> +    template <typename _Tp1>
>      auto
> -    operator()(const T1& t1) -> decltype(t1[id]) const
> +    operator()(const _Tp1& __t1) -> decltype(__t1[id]) const
>      {
> -        return t1[id];
> +        return __t1[id];
>      }
>  };
>
> -// It serves the same purpose as tuplewrapper in iterator_impl.h, but in
> this case we don't need
> +// It serves the same purpose as _Tuplewrapper in iterator_impl.h, but in
> this case we don't need
>  // swap, so we can simply map it to tuple adjusting the types
> -template <typename... T>
> -using tuplewrapper = __onedpl::__internal::tuple<typename
> __onedpl::__internal::__lvref_or_val<T>::__type...>;
> +template <typename... _Tp>
> +using _Tuplewrapper = __onedpl::__internal::tuple<typename
> __onedpl::__internal::__lvref_or_val<_Tp>::__type...>;
>
>  // __internal::make_tuple
> -template <typename... T>
> -constexpr __onedpl::__internal::tuple<T...>
> -make_tuple(T... args)
> +template <typename... _Tp>
> +constexpr __onedpl::__internal::tuple<_Tp...>
> +make_tuple(_Tp... args)
>  {
> -    return __onedpl::__internal::tuple<T...>{args...};
> +    return __onedpl::__internal::tuple<_Tp...>{args...};
>  }
>
> -// __internal::make_tuplewrapper
> -template <typename... T>
> -__onedpl::__internal::tuplewrapper<T&&...>
> -make_tuplewrapper(T&&... t)
> +// __internal::__make_tuplewrapper
> +template <typename... _Tp>
> +__onedpl::__internal::_Tuplewrapper<_Tp&&...>
> +__make_tuplewrapper(_Tp&&... __t)
>  {
> -    return {::std::forward<T>(t)...};
> +    return {::std::forward<_Tp>(__t)...};
>  }
>
> -template <size_t N>
> -struct get_impl
> +template <size_t _Nm>
> +struct __get_impl
>  {
> -    template <typename... T>
> +    template <typename... _Tp>
>      constexpr auto
> -    operator()(__onedpl::__internal::tuple<T...>& t) const ->
> decltype(get_impl<N - 1>()(t.next))
> +    operator()(__onedpl::__internal::tuple<_Tp...>& __t) const ->
> decltype(__get_impl<_Nm - 1>()(__t.__next))
>      {
> -        return get_impl<N - 1>()(t.next);
> +        return __get_impl<_Nm - 1>()(__t.__next);
>      }
>
> -    template <typename... T>
> +    template <typename... _Tp>
>      constexpr auto
> -    operator()(const __onedpl::__internal::tuple<T...>& t) const ->
> decltype(get_impl<N - 1>()(t.next))
> +    operator()(const __onedpl::__internal::tuple<_Tp...>& __t) const ->
> decltype(__get_impl<_Nm - 1>()(__t.__next))
>      {
> -        return get_impl<N - 1>()(t.next);
> +        return __get_impl<_Nm - 1>()(__t.__next);
>      }
>
> -    template <typename... T>
> +    template <typename... _Tp>
>      constexpr auto
> -    operator()(__onedpl::__internal::tuple<T...>&& t) const ->
> decltype(get_impl<N - 1>()(::std::move(t.next)))
> +    operator()(__onedpl::__internal::tuple<_Tp...>&& __t) const ->
> decltype(__get_impl<_Nm - 1>()(::std::move(__t.__next)))
>      {
> -        return get_impl<N - 1>()(::std::move(t.next));
> +        return __get_impl<_Nm - 1>()(::std::move(__t.__next));
>      }
>
> -    template <typename... T>
> +    template <typename... _Tp>
>      constexpr auto
> -    operator()(const __onedpl::__internal::tuple<T...>&& t) const ->
> decltype(get_impl<N - 1>()(::std::move(t.next)))
> +    operator()(const __onedpl::__internal::tuple<_Tp...>&& __t) const ->
> decltype(__get_impl<_Nm - 1>()(::std::move(__t.__next)))
>      {
> -        return get_impl<N - 1>()(::std::move(t.next));
> +        return __get_impl<_Nm - 1>()(::std::move(__t.__next));
>      }
>  };
>
>  template <>
> -struct get_impl<0>
> +struct __get_impl<0>
>  {
> -    template <typename... T>
> -    using ret_type = ::std::tuple_element_t<0,
> __onedpl::__internal::tuple<T...>>;
> +    template <typename... _Tp>
> +    using _Ret_type = ::std::tuple_element_t<0,
> __onedpl::__internal::tuple<_Tp...>>;
>
> -    template <typename... T>
> -    constexpr ret_type<T...>&
> -    operator()(__onedpl::__internal::tuple<T...>& t) const
> +    template <typename... _Tp>
> +    constexpr _Ret_type<_Tp...>&
> +    operator()(__onedpl::__internal::tuple<_Tp...>& __t) const
>      {
> -        return t.holder.value;
> +        return __t.__holder.value;
>      }
>
> -    template <typename... T>
> -    constexpr const ret_type<T...>&
> -    operator()(const __onedpl::__internal::tuple<T...>& t) const
> +    template <typename... _Tp>
> +    constexpr const _Ret_type<_Tp...>&
> +    operator()(const __onedpl::__internal::tuple<_Tp...>& __t) const
>      {
> -        return t.holder.value;
> +        return __t.__holder.value;
>      }
>
> -    template <typename... T>
> -    constexpr ret_type<T...>&&
> -    operator()(__onedpl::__internal::tuple<T...>&& t) const
> +    template <typename... _Tp>
> +    constexpr _Ret_type<_Tp...>&&
> +    operator()(__onedpl::__internal::tuple<_Tp...>&& __t) const
>      {
> -        return ::std::forward<ret_type<T...>&&>(t.holder.value);
> +        return ::std::forward<_Ret_type<_Tp...>&&>(__t.__holder.value);
>      }
>
> -    template <typename... T>
> -    constexpr const ret_type<T...>&&
> -    operator()(const __onedpl::__internal::tuple<T...>&& t) const
> +    template <typename... _Tp>
> +    constexpr const _Ret_type<_Tp...>&&
> +    operator()(const __onedpl::__internal::tuple<_Tp...>&& __t) const
>      {
> -        return ::std::forward<const ret_type<T...>&&>(t.holder.value);
> +        return ::std::forward<const
> _Ret_type<_Tp...>&&>(__t.__holder.value);
>      }
>  };
>
> -// __internal::map_tuple
> -template <size_t I, typename F, typename... T>
> +// __internal::__map_tuple
> +template <size_t I, typename _Fn, typename... _Tp>
>  auto
> -apply_to_tuple(F f, T... in) ->
> decltype(f(__onedpl::__internal::get_impl<I>()(in)...))
> +__apply_to_tuple(_Fn __f, _Tp... __in) ->
> decltype(__f(__onedpl::__internal::__get_impl<I>()(__in)...))
>  {
> -    return f(__onedpl::__internal::get_impl<I>()(in)...);
> +    return __f(__onedpl::__internal::__get_impl<I>()(__in)...);
>  }
>
> -struct make_inner_tuple_functor
> +struct __make_inner_tuple_functor
>  {
>      template <typename... Args>
>      auto
> @@ -222,45 +222,45 @@ struct make_inner_tuple_functor
>      }
>  };
>
> -struct make_tuplewrapper_functor
> +struct __make_tuplewrapper_functor
>  {
>      template <typename... Args>
>      auto
>      operator()(Args&&... args) const
> -        ->
> decltype(__onedpl::__internal::make_tuplewrapper(::std::forward<Args>(args)...))
> +        ->
> decltype(__onedpl::__internal::__make_tuplewrapper(::std::forward<Args>(args)...))
>      {
> -        return
> __onedpl::__internal::make_tuplewrapper(::std::forward<Args>(args)...);
> +        return
> __onedpl::__internal::__make_tuplewrapper(::std::forward<Args>(args)...);
>      }
>  };
>
> -template <typename MakeTupleF, typename F, size_t... indices, typename...
> T>
> +template <typename _MakeTupleF, typename _Fn, size_t... __indices,
> typename... _Tp>
>  auto
> -map_tuple_impl(MakeTupleF mtf, F f, ::std::index_sequence<indices...>,
> T... in)
> -    -> decltype(mtf(__onedpl::__internal::apply_to_tuple<indices>(f,
> in...)...))
> +__map_tuple_impl(_MakeTupleF mtf, _Fn __f,
> ::std::index_sequence<__indices...>, _Tp... __in)
> +    ->
> decltype(mtf(__onedpl::__internal::__apply_to_tuple<__indices>(__f,
> __in...)...))
>  {
> -    return mtf(__onedpl::__internal::apply_to_tuple<indices>(f,
> in...)...);
> +    return mtf(__onedpl::__internal::__apply_to_tuple<__indices>(__f,
> __in...)...);
>  }
>
>  //
> -template <typename F, template <typename...> class TBig, typename... T,
> typename... RestTuples>
> +template <typename _Fn, template <typename...> class _TBig, typename...
> _Tp, typename... _RestTuples>
>  auto
> -map_tuple(F f, TBig<T...> in, RestTuples... rest)
> -    ->
> decltype(__onedpl::__internal::map_tuple_impl(__onedpl::__internal::make_inner_tuple_functor{},
> f,
> -
> ::std::make_index_sequence<sizeof...(T)>(), in, rest...))
> +__map_tuple(_Fn __f, _TBig<_Tp...> __in, _RestTuples... __rest)
> +    ->
> decltype(__onedpl::__internal::__map_tuple_impl(__onedpl::__internal::__make_inner_tuple_functor{},
> __f,
> +
> ::std::make_index_sequence<sizeof...(_Tp)>(), __in, __rest...))
>  {
> -    return
> __onedpl::__internal::map_tuple_impl(__onedpl::__internal::make_inner_tuple_functor{},
> f,
> -
>  ::std::make_index_sequence<sizeof...(T)>(), in, rest...);
> +    return
> __onedpl::__internal::__map_tuple_impl(__onedpl::__internal::__make_inner_tuple_functor{},
> __f,
> +
>  ::std::make_index_sequence<sizeof...(_Tp)>(), __in, __rest...);
>  }
>
> -// Functions are needed to call get_value_by_idx: it requires to store in
> tuple wrapper
> -template <typename F, template <typename...> class TBig, typename... T,
> typename... RestTuples>
> +// Functions are needed to call _Get_value_by_idx: it requires to store
> in tuple wrapper
> +template <typename _Fn, template <typename...> class _TBig, typename...
> _Tp, typename... _RestTuples>
>  auto
> -map_tuplewrapper(F f, TBig<T...> in, RestTuples... rest)
> -    ->
> decltype(__onedpl::__internal::map_tuple_impl(__onedpl::__internal::make_tuplewrapper_functor{},
> f,
> -
> ::std::make_index_sequence<sizeof...(T)>(), in, rest...))
> +__map_tuplewrapper(_Fn __f, _TBig<_Tp...> __in, _RestTuples... __rest)
> +    ->
> decltype(__onedpl::__internal::__map_tuple_impl(__onedpl::__internal::__make_tuplewrapper_functor{},
> __f,
> +
> ::std::make_index_sequence<sizeof...(_Tp)>(), __in, __rest...))
>  {
> -    return
> __onedpl::__internal::map_tuple_impl(__onedpl::__internal::make_tuplewrapper_functor{},
> f,
> -
>  ::std::make_index_sequence<sizeof...(T)>(), in, rest...);
> +    return
> __onedpl::__internal::__map_tuple_impl(__onedpl::__internal::__make_tuplewrapper_functor{},
> __f,
> +
>  ::std::make_index_sequence<sizeof...(_Tp)>(), __in, __rest...);
>  }
>
>  template <typename _Tp>
> @@ -268,7 +268,7 @@ struct __value_holder
>  {
>      __value_holder() = default;
>      template <typename _Up>
> -    __value_holder(_Up&& t) : value(::std::forward<_Up>(t))
> +    __value_holder(_Up&& __t) : value(::std::forward<_Up>(__t))
>      {
>      }
>      _Tp value;
> @@ -290,13 +290,13 @@ struct __copy_assignable_holder<_Tp, false> :
> __onedpl::__internal::__value_hold
>      __copy_assignable_holder(const __copy_assignable_holder&) = default;
>      __copy_assignable_holder(__copy_assignable_holder&&) = default;
>      __copy_assignable_holder&
> -    operator=(const __copy_assignable_holder& other)
> +    operator=(const __copy_assignable_holder& __other)
>      {
> -        this->value = other.value;
> +        this->value = __other.value;
>          return *this;
>      }
>      __copy_assignable_holder&
> -    operator=(__copy_assignable_holder&& other) = default;
> +    operator=(__copy_assignable_holder&& __other) = default;
>  };
>
>  template <typename _Tuple1, typename _Tuple2, int I = 0>
> @@ -335,7 +335,7 @@ __less(_Tuple1&& __lhs, _Tuple2&& __rhs)
>      }
>  }
>
> -template <typename T>
> +template <typename _Tp>
>  struct __is_internal_tuple : std::false_type
>  {
>  };
> @@ -345,10 +345,10 @@ struct
> __is_internal_tuple<__onedpl::__internal::tuple<Ts...>> : std::true_type
>  {
>  };
>
> -template <typename T>
> -inline constexpr bool __is_internal_tuple_v =
> __is_internal_tuple<T>::value;
> +template <typename _Tp>
> +inline constexpr bool __is_internal_tuple_v =
> __is_internal_tuple<_Tp>::value;
>
> -template <typename T>
> +template <typename _Tp>
>  struct __is_std_tuple : std::false_type
>  {
>  };
> @@ -358,8 +358,8 @@ struct __is_std_tuple<std::tuple<Ts...>> :
> std::true_type>  {
>  };
>
> -template <typename T>
> -inline constexpr bool __is_std_tuple_v = __is_std_tuple<T>::value;
> +template <typename _Tp>
> +inline constexpr bool __is_std_tuple_v = __is_std_tuple<_Tp>::value;
>
>  // Either LHS = this internal tuple type + RHS = any compatible tuple type
>  // or     LHS = std::tuple               + RHS = this internal tuple type
> @@ -367,144 +367,144 @@ inline constexpr bool __is_std_tuple_v =
> __is_std_tuple<T>::value;
>  //       have ambiguity comparing two different compatible internal tuple
> types, because both instantiations would
>  //       create the necessary comparison. As written, the type
> instantiation of the type in the LHS is always
>  //       responsible for creating this comparison operator.
> -template <typename _ThisTuple, typename _U, typename _V>
> +template <typename _ThisTuple, typename _Up, typename _Vp>
>  inline constexpr bool __enable_comparison_op_v =
> -    (std::is_same_v<std::decay_t<_ThisTuple>, std::decay_t<_U>> &&
>                  //LHS +
> -
> (__onedpl::__internal::__is_std_tuple_v<std::decay_t<_V>> ||        //RHS
> option 1
> -
>  __onedpl::__internal::__is_internal_tuple_v<std::decay_t<_V>>)) || //RHS
> option 2  - OR -
> -    (__onedpl::__internal::__is_std_tuple_v<std::decay_t<_U>> &&
>               //LHS +
> -                    std::is_same_v<std::decay_t<_ThisTuple>,
> std::decay_t<_V>>);           //RHS
> +    (std::is_same_v<std::decay_t<_ThisTuple>, std::decay_t<_Up>> &&
>                 //LHS +
> +
> (__onedpl::__internal::__is_std_tuple_v<std::decay_t<_Vp>> ||        //RHS
> option 1
> +
>  __onedpl::__internal::__is_internal_tuple_v<std::decay_t<_Vp>>)) || //RHS
> option 2  - OR -
> +    (__onedpl::__internal::__is_std_tuple_v<std::decay_t<_Up>> &&
>                 //LHS +
> +                    std::is_same_v<std::decay_t<_ThisTuple>,
> std::decay_t<_Vp>>);           //RHS
>
> -template <typename T1, typename... T>
> -struct tuple<T1, T...>
> +template <typename _Tp1, typename... _Tps>
> +struct tuple<_Tp1, _Tps...>
>  {
> -    __onedpl::__internal::__copy_assignable_holder<T1> holder;
> -    tuple<T...> next;
> +    __onedpl::__internal::__copy_assignable_holder<_Tp1> __holder;
> +    tuple<_Tps...> __next;
>
> -    using tuple_type = ::std::tuple<T1, T...>;
> +    using tuple_type = ::std::tuple<_Tp1, _Tps...>;
>
>      template <::std::size_t I>
>      constexpr auto
> -    get() & -> decltype(get_impl<I>()(*this))
> +    get() & -> decltype(__get_impl<I>()(*this))
>      {
> -        return get_impl<I>()(*this);
> +        return __get_impl<I>()(*this);
>      }
>
>      template <::std::size_t I>
>      constexpr auto
> -    get() const& -> decltype(get_impl<I>()(*this))
> +    get() const& -> decltype(__get_impl<I>()(*this))
>      {
> -        return get_impl<I>()(*this);
> +        return __get_impl<I>()(*this);
>      }
>
>      template <::std::size_t I>
>      constexpr auto
> -    get() && -> decltype(get_impl<I>()(::std::move(*this)))
> +    get() && -> decltype(__get_impl<I>()(::std::move(*this)))
>      {
> -        return get_impl<I>()(::std::move(*this));
> +        return __get_impl<I>()(::std::move(*this));
>      }
>
>      template <::std::size_t I>
>      constexpr auto
> -    get() const&& -> decltype(get_impl<I>()(::std::move(*this)))
> +    get() const&& -> decltype(__get_impl<I>()(::std::move(*this)))
>      {
> -        return get_impl<I>()(::std::move(*this));
> +        return __get_impl<I>()(::std::move(*this));
>      }
>
> -    template <typename _Tp = T1,
> +    template <typename _Tp = _Tp1,
>                std::enable_if_t<
> -                  std::conjunction_v<std::is_default_constructible<_Tp>,
> std::is_default_constructible<T>...>, int> = 0>
> -    tuple() : holder{}, next{}
> +                  std::conjunction_v<std::is_default_constructible<_Tp>,
> std::is_default_constructible<_Tps>...>, int> = 0>
> +    tuple() : __holder{}, __next{}
>      {
>      } //The std::tuple value-initializes all elements, so we also follow
> this.
> -    tuple(const tuple& other) = default;
> -    tuple(tuple&& other) = default;
> -    template <typename _U1, typename... _U, typename =
> ::std::enable_if_t<(sizeof...(_U) == sizeof...(T))>>
> -    tuple(const tuple<_U1, _U...>& other) : holder(other.template
> get<0>()), next(other.next)
> +    tuple(const tuple& __other) = default;
> +    tuple(tuple&& __other) = default;
> +    template <typename _U1, typename... _Up, typename =
> ::std::enable_if_t<(sizeof...(_Up) == sizeof...(_Tps))>>
> +    tuple(const tuple<_U1, _Up...>& __other) : __holder(__other.template
> get<0>()), __next(__other.__next)
>      {
>      }
>
> -    template <typename _U1, typename... _U, typename =
> ::std::enable_if_t<(sizeof...(_U) == sizeof...(T))>>
> -    tuple(tuple<_U1, _U...>&& other) : holder(std::move(other).template
> get<0>()), next(std::move(other.next))
> +    template <typename _U1, typename... _Up, typename =
> ::std::enable_if_t<(sizeof...(_Up) == sizeof...(_Tps))>>
> +    tuple(tuple<_U1, _Up...>&& __other) :
> __holder(std::move(__other).template get<0>()),
> __next(std::move(__other.__next))
>      {
>      }
>
> -    template <typename _U1, typename... _U,
> +    template <typename _U1, typename... _Up,
>                typename = ::std::enable_if_t<
> -                  (sizeof...(_U) == sizeof...(T) &&
> -                   ::std::conjunction_v<::std::is_constructible<T1,
> _U1&&>, ::std::is_constructible<T, _U&&>...>)>>
> -    tuple(_U1&& _value, _U&&... _next) :
> holder(::std::forward<_U1>(_value)), next(::std::forward<_U>(_next)...)
> +                  (sizeof...(_Up) == sizeof...(_Tps) &&
> +                   ::std::conjunction_v<::std::is_constructible<_Tp1,
> _U1&&>, ::std::is_constructible<_Tps, _Up&&>...>)>>
> +    tuple(_U1&& _value, _Up&&... _next) :
> __holder(::std::forward<_U1>(_value)), __next(::std::forward<_Up>(_next)...)
>      {
>      }
>
>      // required to convert ::std::tuple to inner tuple in user-provided
> functor
> -    tuple(const ::std::tuple<T1, T...>& other)
> -        : holder(::std::get<0>(other)),
> next(__onedpl::__internal::get_tuple_tail(other))
> +    tuple(const ::std::tuple<_Tp1, _Tps...>& __other)
> +        : __holder(::std::get<0>(__other)),
> __next(__onedpl::__internal::get_tuple_tail(__other))
>      {
>      }
>
>      // conversion to ::std::tuple with the same template arguments
> -    operator ::std::tuple<T1, T...>() const
> +    operator ::std::tuple<_Tp1, _Tps...>() const
>      {
> -        static constexpr ::std::size_t __tuple_size = sizeof...(T) + 1;
> +        static constexpr ::std::size_t __tuple_size = sizeof...(_Tps) + 1;
>          return to_std_tuple(*this,
> ::std::make_index_sequence<__tuple_size>());
>      }
>
>      // conversion to ::std::tuple with the different template arguments
> -    template <typename U1, typename... U>
> -    operator ::std::tuple<U1, U...>() const
> +    template <typename _U1, typename... _Up>
> +    operator ::std::tuple<_U1, _Up...>() const
>      {
> -        constexpr ::std::size_t __tuple_size = sizeof...(T) + 1;
> -        return to_std_tuple(static_cast<tuple<U1, U...>>(*this),
> ::std::make_index_sequence<__tuple_size>());
> +        constexpr ::std::size_t __tuple_size = sizeof...(_Tps) + 1;
> +        return to_std_tuple(static_cast<tuple<_U1, _Up...>>(*this),
> ::std::make_index_sequence<__tuple_size>());
>      }
>
>      // non-const subscript operator with tuple argument
>      template <typename Size1, typename... SizeRest>
>      auto operator[](__onedpl::__internal::tuple<Size1, SizeRest...>
> tuple_size)
> -        -> decltype(__onedpl::__internal::get_value_by_idx<Size1,
> SizeRest...>()(*this, tuple_size))
> +        -> decltype(__onedpl::__internal::_Get_value_by_idx<Size1,
> SizeRest...>()(*this, tuple_size))
>      {
> -        return __onedpl::__internal::get_value_by_idx<Size1,
> SizeRest...>()(*this, tuple_size);
> +        return __onedpl::__internal::_Get_value_by_idx<Size1,
> SizeRest...>()(*this, tuple_size);
>      }
>
>      // const subscript operator with tuple argument
>      template <typename Size1, typename... SizeRest>
>      auto operator[](const __onedpl::__internal::tuple<Size1, SizeRest...>
> tuple_size) const
> -        -> decltype(__onedpl::__internal::get_value_by_idx<Size1,
> SizeRest...>()(*this, tuple_size))
> +        -> decltype(__onedpl::__internal::_Get_value_by_idx<Size1,
> SizeRest...>()(*this, tuple_size))
>      {
> -        return __onedpl::__internal::get_value_by_idx<Size1,
> SizeRest...>()(*this, tuple_size);
> +        return __onedpl::__internal::_Get_value_by_idx<Size1,
> SizeRest...>()(*this, tuple_size);
>      }
>
>      // non-const subscript operator with scalar argument
> -    template <typename Idx>
> -    auto operator[](Idx idx)
> -        ->
> decltype(__onedpl::__internal::map_tuplewrapper(__onedpl::__internal::MapValue<Idx>{idx},
> *this))
> +    template <typename _Idx>
> +    auto operator[](_Idx __idx)
> +        ->
> decltype(__onedpl::__internal::__map_tuplewrapper(__onedpl::__internal::_MapValue<_Idx>{__idx},
> *this))
>      {
> -        return
> __onedpl::__internal::map_tuplewrapper(__onedpl::__internal::MapValue<Idx>{idx},
> *this);
> +        return
> __onedpl::__internal::__map_tuplewrapper(__onedpl::__internal::_MapValue<_Idx>{__idx},
> *this);
>      }
>
>      // const subscript operator with scalar argument
> -    template <typename Idx>
> -    auto operator[](Idx idx) const
> -        ->
> decltype(__onedpl::__internal::map_tuplewrapper(__onedpl::__internal::MapValue<Idx>{idx},
> *this))
> +    template <typename _Idx>
> +    auto operator[](_Idx __idx) const
> +        ->
> decltype(__onedpl::__internal::__map_tuplewrapper(__onedpl::__internal::_MapValue<_Idx>{__idx},
> *this))
>      {
> -        return
> __onedpl::__internal::map_tuplewrapper(__onedpl::__internal::MapValue<Idx>{idx},
> *this);
> +        return
> __onedpl::__internal::__map_tuplewrapper(__onedpl::__internal::_MapValue<_Idx>{__idx},
> *this);
>      }
>
> -    template <typename U1, typename... U>
> +    template <typename _U1, typename... _Up>
>      tuple&
> -    operator=(const tuple<U1, U...>& other)
> +    operator=(const tuple<_U1, _Up...>& __other)
>      {
> -        holder.value = other.holder.value;
> -        next = other.next;
> +        __holder.value = __other.__holder.value;
> +        __next = __other.__next;
>          return *this;
>      }
>
> -    template <typename U1, typename... U>
> +    template <typename _U1, typename... _Up>
>      const tuple&
> -    operator=(const tuple<U1, U...>& other) const
> +    operator=(const tuple<_U1, _Up...>& __other) const
>      {
> -        holder.value = other.holder.value;
> -        next = other.next;
> +        __holder.value = __other.__holder.value;
> +        __next = __other.__next;
>          return *this;
>      }
>
> @@ -512,71 +512,71 @@ struct tuple<T1, T...>
>      // since "template operator=" is not considered as operator= overload
>      // the deleted operator= has a preference during lookup
>      tuple&
> -    operator=(const tuple<T1, T...>& other) = default;
> +    operator=(const tuple<_Tp1, _Tps...>&) = default;
>
>      // for cases when we assign ::std::tuple to __internal::tuple
> -    template <typename U1, typename... U>
> +    template <typename _U1, typename... _Us>
>      tuple&
> -    operator=(const ::std::tuple<U1, U...>& other)
> +    operator=(const ::std::tuple<_U1, _Us...>& __other)
>      {
> -        holder.value = ::std::get<0>(other);
> -        next = __onedpl::__internal::get_tuple_tail(other);
> +        __holder.value = ::std::get<0>(__other);
> +        __next = __onedpl::__internal::get_tuple_tail(__other);
>          return *this;
>      }
>
> -    template <typename _U, typename _V,
> -
> std::enable_if_t<__onedpl::__internal::__enable_comparison_op_v<tuple, _U,
> _V>, int> = 0>
> +    template <typename _Up, typename _Vp,
> +
> std::enable_if_t<__onedpl::__internal::__enable_comparison_op_v<tuple, _Up,
> _Vp>, int> = 0>
>      friend constexpr bool
> -    operator==(_U&& __lhs, _V&& __rhs)
> +    operator==(_Up&& __lhs, _Vp&& __rhs)
>      {
> -        return __onedpl::__internal::__equal(std::forward<_U>(__lhs),
> std::forward<_V>(__rhs));
> +        return __onedpl::__internal::__equal(std::forward<_Up>(__lhs),
> std::forward<_Vp>(__rhs));
>      }
>
> -    template <typename _U, typename _V,
> -
> std::enable_if_t<__onedpl::__internal::__enable_comparison_op_v<tuple, _U,
> _V>, int> = 0>
> +    template <typename _Up, typename _Vp,
> +
> std::enable_if_t<__onedpl::__internal::__enable_comparison_op_v<tuple, _Up,
> _Vp>, int> = 0>
>      friend constexpr bool
> -    operator!=(_U&& __lhs, _V&& __rhs)
> +    operator!=(_Up&& __lhs, _Vp&& __rhs)
>      {
> -        return !__onedpl::__internal::__equal(std::forward<_U>(__lhs),
> std::forward<_V>(__rhs));
> +        return !__onedpl::__internal::__equal(std::forward<_Up>(__lhs),
> std::forward<_Vp>(__rhs));
>      }
>
> -    template <typename _U, typename _V,
> -
> std::enable_if_t<__onedpl::__internal::__enable_comparison_op_v<tuple, _U,
> _V>, int> = 0>
> +    template <typename _Up, typename _Vp,
> +
> std::enable_if_t<__onedpl::__internal::__enable_comparison_op_v<tuple, _Up,
> _Vp>, int> = 0>
>      friend constexpr bool
> -    operator<(_U&& __lhs, _V&& __rhs)
> +    operator<(_Up&& __lhs, _Vp&& __rhs)
>      {
> -        return __onedpl::__internal::__less(std::forward<_U>(__lhs),
> std::forward<_V>(__rhs));
> +        return __onedpl::__internal::__less(std::forward<_Up>(__lhs),
> std::forward<_Vp>(__rhs));
>      }
>
> -    template <typename _U, typename _V,
> -
> std::enable_if_t<__onedpl::__internal::__enable_comparison_op_v<tuple, _U,
> _V>, int> = 0>
> +    template <typename _Up, typename _Vp,
> +
> std::enable_if_t<__onedpl::__internal::__enable_comparison_op_v<tuple, _Up,
> _Vp>, int> = 0>
>      friend constexpr bool
> -    operator<=(_U&& __lhs, _V&& __rhs)
> +    operator<=(_Up&& __lhs, _Vp&& __rhs)
>      {
> -        return !__onedpl::__internal::__less(std::forward<_V>(__rhs),
> std::forward<_U>(__lhs));
> +        return !__onedpl::__internal::__less(std::forward<_Vp>(__rhs),
> std::forward<_Up>(__lhs));
>      }
>
> -    template <typename _U, typename _V,
> -
> std::enable_if_t<__onedpl::__internal::__enable_comparison_op_v<tuple, _U,
> _V>, int> = 0>
> +    template <typename _Up, typename _Vp,
> +
> std::enable_if_t<__onedpl::__internal::__enable_comparison_op_v<tuple, _Up,
> _Vp>, int> = 0>
>      friend constexpr bool
> -    operator>(_U&& __lhs, _V&& __rhs)
> +    operator>(_Up&& __lhs, _Vp&& __rhs)
>      {
> -        return __onedpl::__internal::__less(std::forward<_V>(__rhs),
> std::forward<_U>(__lhs));
> +        return __onedpl::__internal::__less(std::forward<_Vp>(__rhs),
> std::forward<_Up>(__lhs));
>      }
>
> -    template <typename _U, typename _V,
> -
> std::enable_if_t<__onedpl::__internal::__enable_comparison_op_v<tuple, _U,
> _V>, int> = 0>
> +    template <typename _Up, typename _Vp,
> +
> std::enable_if_t<__onedpl::__internal::__enable_comparison_op_v<tuple, _Up,
> _Vp>, int> = 0>
>      friend constexpr bool
> -    operator>=(_U&& __lhs, _V&& __rhs)
> +    operator>=(_Up&& __lhs, _Vp&& __rhs)
>      {
> -        return !__onedpl::__internal::__less(std::forward<_U>(__lhs),
> std::forward<_V>(__rhs));
> +        return !__onedpl::__internal::__less(std::forward<_Up>(__lhs),
> std::forward<_Vp>(__rhs));
>      }
>
> -    template <typename U1, typename... U, ::std::size_t... _Ip>
> -    static ::std::tuple<U1, U...>
> -    to_std_tuple(const __onedpl::__internal::tuple<U1, U...>& __t,> ::std::index_sequence<_Ip...>)
> +    template <typename _U1, typename... _Us, ::std::size_t... _Ip>
> +    static ::std::tuple<_U1, _Us...>
> +    to_std_tuple(const __onedpl::__internal::tuple<_U1, _Us...>& __t,
> ::std::index_sequence<_Ip...>)
>      {
> -        return ::std::tuple<U1,
> U...>(__onedpl::__internal::get_impl<_Ip>()(__t)...);
> +        return ::std::tuple<_U1,
> _Us...>(__onedpl::__internal::__get_impl<_Ip>()(__t)...);
>      }
>  };
>
> @@ -587,7 +587,7 @@ struct tuple<>
>      // since compiler does not autogenerate ctors
>      // if user defines its own, we have to define them too
>      tuple() = default;
> -    tuple(const tuple& other) = default;
> +    tuple(const tuple&) = default;
>
>      tuple(const ::std::tuple<>&) {}
>
> @@ -643,31 +643,31 @@ swap(__onedpl::__internal::tuple<>& /*__x*/,
> __onedpl::__internal::tuple<>& /*__
>  {
>  }
>
> -template <typename... _T>
> +template <typename... _Tp>
>  void
> -swap(__onedpl::__internal::tuple<_T...>& __x,
> __onedpl::__internal::tuple<_T...>& __y)
> +swap(__onedpl::__internal::tuple<_Tp...>& __x,
> __onedpl::__internal::tuple<_Tp...>& __y)
>  {
>      using ::std::swap;
> -    swap(__x.holder.value, __y.holder.value);
> -    swap(__x.next, __y.next);
> +    swap(__x.__holder.value, __y.__holder.value);
> +    swap(__x.__next, __y.__next);
>  }
>
> -template <typename... _T>
> +template <typename... _Tp>
>  void
> -swap(__onedpl::__internal::tuple<_T...>&& __x,
> __onedpl::__internal::tuple<_T...>&& __y)
> +swap(__onedpl::__internal::tuple<_Tp...>&& __x,
> __onedpl::__internal::tuple<_Tp...>&& __y)
>  {
>      using ::std::swap;
> -    swap(__x.holder.value, __y.holder.value);
> -    swap(__x.next, __y.next);
> +    swap(__x.__holder.value, __y.__holder.value);
> +    swap(__x.__next, __y.__next);
>  }
>
>  // Get corresponding ::std::tuple for our internal tuple(i.e. access
> tuple_type member
>  // which is ::std::tuple<Ts...> for internal::tuple<Ts...>).
>  // Do nothing for other types or if both operands are internal tuples.
> -template <class _T, class>
> +template <class _Tp, class>
>  struct __get_tuple_type
>  {
> -    using __type = _T;
> +    using __type = _Tp;
>  };
>
>  template <class... _Ts, class... _Us>
> @@ -682,112 +682,112 @@ struct
> __get_tuple_type<__onedpl::__internal::tuple<_Ts...>, _Other>
>      using __type = typename
> __onedpl::__internal::tuple<_Ts...>::tuple_type;
>  };
>
> -template <typename Size>
> -struct AddIndexes
> +template <typename _Size>
> +struct _AddIndexes
>  {
> -    Size idx;
> +    _Size __idx;
>
> -    template <typename T1>
> -    T1
> -    operator()(const T1& t1) const
> +    template <typename _Tp1>
> +    _Tp1
> +    operator()(const _Tp1& __t1) const
>      {
> -        return t1 + idx;
> +        return __t1 + __idx;
>      }
>  };
>
> -template <typename Size>
> -struct SubTupleFromIndex
> +template <typename _Size>
> +struct _SubTupleFromIndex
>  {
> -    Size idx;
> +    _Size __idx;
>
> -    template <typename T1>
> -    T1
> -    operator()(const T1& t1) const
> +    template <typename _Tp1>
> +    _Tp1
> +    operator()(const _Tp1& __t1) const
>      {
> -        return idx - t1;
> +        return __idx - __t1;
>      }
>  };
>
> -template <typename Size>
> -struct SubIndexFromTuple
> +template <typename _Size>
> +struct _SubIndexFromTuple
>  {
> -    Size idx;
> +    _Size __idx;
>
> -    template <typename T1>
> -    T1
> -    operator()(const T1& t1) const
> +    template <typename _Tp1>
> +    _Tp1
> +    operator()(const _Tp1& __t1) const
>      {
> -        return t1 - idx;
> +        return __t1 - __idx;
>      }
>  };
>
> -struct subscription_functor
> +struct _Subscription_functor
>  {
> -    template <typename _A, typename _Index>
> +    template <typename _Arr, typename _Index>
>      auto
> -    operator()(_A __a, _Index __idx) -> decltype(__a[__idx]) const
> +    operator()(_Arr __a, _Index __idx) -> decltype(__a[__idx]) const
>      {
>          return __a[__idx];
>      }
>  };
>
> -template <typename... Size>
> -struct get_value_by_idx
> +template <typename... _Size>
> +struct _Get_value_by_idx
>  {
> -    template <typename... Acc>
> +    template <typename... _Acc>
>      auto
> -    operator()(__onedpl::__internal::tuple<Acc...>& acc,
> __onedpl::__internal::tuple<Size...>& idx)
> -        ->
> decltype(__onedpl::__internal::map_tuplewrapper(__onedpl::__internal::subscription_functor{},
> acc,
> -                                                              idx))
> +    operator()(__onedpl::__internal::tuple<_Acc...>& __acc,
> __onedpl::__internal::tuple<_Size...>& __idx)
> +        ->
> decltype(__onedpl::__internal::__map_tuplewrapper(__onedpl::__internal::_Subscription_functor{},
> __acc,
> +                                                          __idx))
>      {
> -        return
> __onedpl::__internal::map_tuplewrapper(__onedpl::__internal::subscription_functor{},
> acc, idx);
> +        return
> __onedpl::__internal::__map_tuplewrapper(__onedpl::__internal::_Subscription_functor{},
> __acc, __idx);
>      }
> -    template <typename... Acc>
> +    template <typename... _Acc>
>      auto
> -    operator()(const __onedpl::__internal::tuple<Acc...>& acc,
> -               const __onedpl::__internal::tuple<Size...>& idx) const
> -        ->
> decltype(__onedpl::__internal::map_tuplewrapper(__onedpl::__internal::subscription_functor{},
> acc,
> -                                                              idx))
> +    operator()(const __onedpl::__internal::tuple<_Acc...>& __acc,
> +               const __onedpl::__internal::tuple<_Size...>& __idx) const
> +        ->
> decltype(__onedpl::__internal::__map_tuplewrapper(__onedpl::__internal::_Subscription_functor{},
> __acc,
> +                                                          __idx))
>      {
> -        return
> __onedpl::__internal::map_tuplewrapper(__onedpl::__internal::subscription_functor{},
> acc, idx);
> +        return
> __onedpl::__internal::__map_tuplewrapper(__onedpl::__internal::_Subscription_functor{},
> __acc, __idx);
>      }
>  };
>
> -template <typename Size, typename... T1>
> -__onedpl::__internal::tuple<T1...>
> -operator+(const __onedpl::__internal::tuple<T1...>& tuple1, Size idx)
> +template <typename _Size, typename... _Tp1>
> +__onedpl::__internal::tuple<_Tp1...>
> +operator+(const __onedpl::__internal::tuple<_Tp1...>& __tuple1, _Size
> __idx)
>  {
> -    return
> __onedpl::__internal::map_tuple(__onedpl::__internal::AddIndexes<Size>{idx},
> tuple1);
> +    return
> __onedpl::__internal::__map_tuple(__onedpl::__internal::_AddIndexes<_Size>{__idx},
> __tuple1);
>  }
>
> -template <typename Size, typename... T1>
> -__onedpl::__internal::tuple<T1...>
> -operator+(Size idx, const __onedpl::__internal::tuple<T1...>& tuple1)
> +template <typename _Size, typename... _Tp1>
> +__onedpl::__internal::tuple<_Tp1...>
> +operator+(_Size __idx, const __onedpl::__internal::tuple<_Tp1...>&
> __tuple1)
>  {
> -    return
> __onedpl::__internal::map_tuple(__onedpl::__internal::AddIndexes<Size>{idx},
> tuple1);
> +    return
> __onedpl::__internal::__map_tuple(__onedpl::__internal::_AddIndexes<_Size>{__idx},
> __tuple1);
>  }
>
> -template <typename Size, typename... T1>
> -__onedpl::__internal::tuple<T1...>
> -operator-(const __onedpl::__internal::tuple<T1...>& tuple1, Size idx)
> +template <typename _Size, typename... _Tp1>
> +__onedpl::__internal::tuple<_Tp1...>
> +operator-(const __onedpl::__internal::tuple<_Tp1...>& __tuple1, _Size
> __idx)
>  {
> -    return
> __onedpl::__internal::map_tuple(__onedpl::__internal::SubIndexFromTuple<Size>{idx},
> tuple1);
> +    return
> __onedpl::__internal::__map_tuple(__onedpl::__internal::_SubIndexFromTuple<_Size>{__idx},
> __tuple1);
>  }
>
>  // required in scan implementation for false offset calculation
> -template <typename Size, typename... T1>
> +template <typename _Size, typename... _Tp1>
>  auto
> -operator-(Size idx, const __onedpl::__internal::tuple<T1...>& tuple1)
> -    ->
> decltype(__onedpl::__internal::map_tuple(__onedpl::__internal::SubTupleFromIndex<Size>{idx},
> tuple1))
> +operator-(_Size __idx, const __onedpl::__internal::tuple<_Tp1...>&
> __tuple1)
> +    ->
> decltype(__onedpl::__internal::__map_tuple(__onedpl::__internal::_SubTupleFromIndex<_Size>{__idx},
> __tuple1))
>  {
> -    return
> __onedpl::__internal::map_tuple(__onedpl::__internal::SubTupleFromIndex<Size>{idx},
> tuple1);
> +    return
> __onedpl::__internal::__map_tuple(__onedpl::__internal::_SubTupleFromIndex<_Size>{__idx},
> __tuple1);
>  }
>
>  // Decay wrapper struct with specialization to decay tuple elements
> -template <typename _T>
> +template <typename _Tp>
>  struct __decay_with_tuple_specialization
>  {
> -    using type = ::std::decay_t<_T>;
> +    using type = ::std::decay_t<_Tp>;
>  };
>
>  template <typename... _Args>
> @@ -841,12 +841,12 @@ get(const __onedpl::__internal::tuple<_Tp...>&& __a)
>  // we must provide a basic_common_reference specialization for our
> internal tuple implementation. std::basic_common_reference
>  // is introduced in __cpp_lib_concepts, so we must ensure this feature is
> present.
>  #if _ONEDPL_CPP20_CONCEPTS_PRESENT
> -template <typename... TTypes, typename... UTypes, template <typename>
> typename TQual,
> -          template <typename> typename UQual>
> -struct basic_common_reference<__onedpl::__internal::tuple<TTypes...>,
> __onedpl::__internal::tuple<UTypes...>,
> -                              TQual, UQual>
> +template <typename... _TTypes, typename... _UTypes, template <typename>
> typename _TQual,
> +          template <typename> typename _UQual>
> +struct basic_common_reference<__onedpl::__internal::tuple<_TTypes...>,
> __onedpl::__internal::tuple<_UTypes...>,
> +                              _TQual, _UQual>
>  {
> -    using type =
> __onedpl::__internal::tuple<::std::common_reference_t<TQual<TTypes>,
> UQual<UTypes>>...>;
> +    using type =
> __onedpl::__internal::tuple<::std::common_reference_t<_TQual<_TTypes>,
> _UQual<_UTypes>>...>;
>  };
>  #endif
>  } // namespace std
> diff --git a/libstdc++-v3/include/pstl/unseq_backend_simd.h
> b/libstdc++-v3/include/pstl/unseq_backend_simd.h
> index 8fb75051aa79..d120de205bec 100644
> --- a/libstdc++-v3/include/pstl/unseq_backend_simd.h
> +++ b/libstdc++-v3/include/pstl/unseq_backend_simd.h
> @@ -431,15 +431,15 @@ __simd_adjacent_find(_Index __first, _Index __last,
> _BinaryPredicate __pred, boo
>
>  // It was created to reduce the code inside ::std::enable_if
>  template <typename _Tp, typename _BinaryOperation>
> -using is_arithmetic_plus = ::std::integral_constant<bool,
> ::std::is_arithmetic_v<_Tp> &&
> +using __is_arithmetic_plus = ::std::integral_constant<bool,
> ::std::is_arithmetic_v<_Tp> &&
>
>  (::std::is_same_v<_BinaryOperation, ::std::plus<_Tp>> ||
>
> ::std::is_same_v<_BinaryOperation, ::std::plus<void>>)>;
>
>  template <typename _Tp, typename _BinaryOperation>
> -inline constexpr bool is_arithmetic_plus_v = is_arithmetic_plus<_Tp,
> _BinaryOperation>::value;
> +inline constexpr bool __is_arithmetic_plus_v = __is_arithmetic_plus<_Tp,
> _BinaryOperation>::value;
>
>  template <typename _DifferenceType, typename _Tp, typename
> _BinaryOperation, typename _UnaryOperation>
> -::std::enable_if_t<is_arithmetic_plus_v<_Tp, _BinaryOperation> &&
> std::is_copy_constructible_v<_Tp>, _Tp>
> +::std::enable_if_t<__is_arithmetic_plus_v<_Tp, _BinaryOperation> &&
> std::is_copy_constructible_v<_Tp>, _Tp>
>  __simd_transform_reduce(_DifferenceType __n, _Tp __init,
> _BinaryOperation, _UnaryOperation __f) noexcept
>  {
>      _ONEDPL_PRAGMA_SIMD_REDUCTION(+ : __init)
> @@ -449,7 +449,7 @@ __simd_transform_reduce(_DifferenceType __n, _Tp
> __init, _BinaryOperation, _Unar
>  }
>
>  template <typename _Size, typename _Tp, typename _BinaryOperation,
> typename _UnaryOperation>
> -::std::enable_if_t<!is_arithmetic_plus_v<_Tp, _BinaryOperation>, _Tp>
> +::std::enable_if_t<!__is_arithmetic_plus_v<_Tp, _BinaryOperation>, _Tp>
>  __simd_transform_reduce(_Size __n, _Tp __init, _BinaryOperation
> __binary_op, _UnaryOperation __f) noexcept
>  {
>      const _Size __block_size = __lane_size / sizeof(_Tp);
> @@ -506,7 +506,7 @@ __simd_transform_reduce(_Size __n, _Tp __init,
> _BinaryOperation __binary_op, _Un
>  // Exclusive scan for "+" and arithmetic types
>  template <class _InputIterator, class _Size, class _OutputIterator, class
> _UnaryOperation, class _Tp,
>            class _BinaryOperation>
> -::std::enable_if_t<is_arithmetic_plus_v<_Tp, _BinaryOperation>,
> ::std::pair<_OutputIterator, _Tp>>
> +::std::enable_if_t<__is_arithmetic_plus_v<_Tp, _BinaryOperation>,
> ::std::pair<_OutputIterator, _Tp>>
>  __simd_scan(_InputIterator __first, _Size __n, _OutputIterator __result,
> _UnaryOperation __unary_op, _Tp __init,
>              _BinaryOperation, /*Inclusive*/ ::std::false_type)
>  {
> @@ -528,7 +528,7 @@ struct _Combiner
>      _BinaryOp* __bin_op; // Here is a pointer to function because of
> default ctor
>
>      _Combiner() : __value{}, __bin_op(nullptr) {}
> -    _Combiner(const _Tp& value, const _BinaryOp* bin_op) :
> __value(value), __bin_op(const_cast<_BinaryOp*>(bin_op)) {}
> +    _Combiner(const _Tp& value, const _BinaryOp* __bin_op) :
> __value(value), __bin_op(const_cast<_BinaryOp*>(__bin_op)) {}
>      // TODO: That copy constructor breaks a private accumulator
> initialization according to the OpenMP spec:
>      // "initializer(omp_priv = omp_orig). That solution was done just for
> UDR simd bricks, when an identity
>      // value unknown and it assumes getting an identity by _Tp value
> initialization - _Tp{}.
> @@ -550,7 +550,7 @@ struct _Combiner
>  // Exclusive scan for other binary operations and types
>  template <class _InputIterator, class _Size, class _OutputIterator, class
> _UnaryOperation, class _Tp,
>            class _BinaryOperation>
> -::std::enable_if_t<!is_arithmetic_plus_v<_Tp, _BinaryOperation>,
> ::std::pair<_OutputIterator, _Tp>>
> +::std::enable_if_t<!__is_arithmetic_plus_v<_Tp, _BinaryOperation>,
> ::std::pair<_OutputIterator, _Tp>>
>  __simd_scan(_InputIterator __first, _Size __n, _OutputIterator __result,
> _UnaryOperation __unary_op, _Tp __init,
>              _BinaryOperation __binary_op, /*Inclusive*/ ::std::false_type)
>  {
> @@ -573,7 +573,7 @@ __simd_scan(_InputIterator __first, _Size __n,
> _OutputIterator __result, _UnaryO
>  // Inclusive scan for "+" and arithmetic types
>  template <class _InputIterator, class _Size, class _OutputIterator, class
> _UnaryOperation, class _Tp,
>            class _BinaryOperation>
> -::std::enable_if_t<is_arithmetic_plus_v<_Tp, _BinaryOperation>,
> ::std::pair<_OutputIterator, _Tp>>
> +::std::enable_if_t<__is_arithmetic_plus_v<_Tp, _BinaryOperation>,
> ::std::pair<_OutputIterator, _Tp>>
>  __simd_scan(_InputIterator __first, _Size __n, _OutputIterator __result,
> _UnaryOperation __unary_op, _Tp __init,
>              _BinaryOperation, /*Inclusive*/ ::std::true_type)
>  {
> @@ -590,7 +590,7 @@ __simd_scan(_InputIterator __first, _Size __n,
> _OutputIterator __result, _UnaryO
>  // Inclusive scan for other binary operations and types
>  template <class _InputIterator, class _Size, class _OutputIterator, class
> _UnaryOperation, class _Tp,
>            class _BinaryOperation>
> -::std::enable_if_t<!is_arithmetic_plus_v<_Tp, _BinaryOperation>,
> ::std::pair<_OutputIterator, _Tp>>
> +::std::enable_if_t<!__is_arithmetic_plus_v<_Tp, _BinaryOperation>,
> ::std::pair<_OutputIterator, _Tp>>
>  __simd_scan(_InputIterator __first, _Size __n, _OutputIterator __result,
> _UnaryOperation __unary_op, _Tp __init,
>              _BinaryOperation __binary_op, ::std::true_type)
>  {
> @@ -631,8 +631,8 @@ __simd_min_element(_ForwardIterator __first, _Size
> __n, _Compare __comp) noexcep
>          // However, some compilers may require it.>
>          _ComplexType() : __min_val{}, __min_ind{}, __min_comp(nullptr) {}
> -        _ComplexType(const _ValueType& val, const _Compare* comp)
> -            : __min_val(val), __min_ind(0),
> __min_comp(const_cast<_Compare*>(comp))
> +        _ComplexType(const _ValueType& val, const _Compare* __comp)
> +            : __min_val(val), __min_ind(0),
> __min_comp(const_cast<_Compare*>(__comp))
>          {
>          }
>          _ComplexType(const _ComplexType& __obj) = default;
> @@ -691,9 +691,9 @@ __simd_minmax_element(_ForwardIterator __first, _Size
> __n, _Compare __comp) noex
>          // However, some compilers may require it.
>
>          _ComplexType() : __min_val{}, __max_val{}, __min_ind{},
> __max_ind{}, __minmax_comp(nullptr) {}
> -        _ComplexType(const _ValueType& min_val, const _ValueType&
> max_val, const _Compare* comp)
> -            : __min_val(min_val), __max_val(max_val), __min_ind(0),
> __max_ind(0),
> -              __minmax_comp(const_cast<_Compare*>(comp))
> +        _ComplexType(const _ValueType& __min_val, const _ValueType&
> __max_val, const _Compare* __comp)
> +            : __min_val(__min_val), __max_val(__max_val), __min_ind(0),
> __max_ind(0),
> +              __minmax_comp(const_cast<_Compare*>(__comp))
>          {
>          }
>          _ComplexType(const _ComplexType& __obj) = default;
> diff --git a/libstdc++-v3/include/pstl/utils.h
> b/libstdc++-v3/include/pstl/utils.h
> index 948edd855116..c4e398f48ffb 100644
> --- a/libstdc++-v3/include/pstl/utils.h
> +++ b/libstdc++-v3/include/pstl/utils.h
> @@ -59,9 +59,9 @@ namespace std::__onedpl
>  namespace __internal
>  {
>
> -template <typename Iterator>
> +template <typename _Iterator>
>  using is_const_iterator =
> -    typename ::std::is_const<::std::remove_pointer_t<typename
> ::std::iterator_traits<Iterator>::pointer>>;
> +    typename ::std::is_const<::std::remove_pointer_t<typename
> ::std::iterator_traits<_Iterator>::pointer>>;
>
>  template <typename _Fp>
>  auto
> @@ -397,10 +397,10 @@ class __transform_if_unary_functor
>
>      template <typename _Input1Type, typename _OutputType>
>      void
> -    operator()(const _Input1Type& x, _OutputType& y) const
> +    operator()(const _Input1Type& __x, _OutputType& __y) const
>      {
> -        if (_M_pred(x))
> -            y = _M_oper(x);
> +        if (_M_pred(__x))
> +            __y = _M_oper(__x);
>      }
>  };
>
> @@ -418,10 +418,10 @@ class __transform_if_binary_functor
>
>      template <typename _Input1Type, typename _Input2Type, typename
> _OutputType>
>      void
> -    operator()(const _Input1Type& x, const _Input2Type& y, _OutputType&
> z) const
> +    operator()(const _Input1Type& __x, const _Input2Type& __y,
> _OutputType& __z) const
>      {
> -        if (_M_pred(x, y))
> -            z = _M_oper(x, y);
> +        if (_M_pred(__x, __y))
> +            __z = _M_oper(__x, __y);
>      }
>  };
>
> @@ -568,7 +568,7 @@ struct __next_to_last
>      }
>  };
>
> -template <typename _T, class _Enable = void>
> +template <typename _Tp, class _Enable = void>
>  class __future;
>
>  // empty base class for type erasure
> @@ -609,9 +609,9 @@ __dpl_bit_cast(const _Src& __src) noexcept
>  }
>
>  // The max power of 2 not exceeding the given value, same as C++20
> std::bit_floor
> -template <typename _T>
> -::std::enable_if_t<::std::is_integral_v<_T> && ::std::is_unsigned_v<_T>,
> _T>
> -__dpl_bit_floor(_T __x) noexcept
> +template <typename _Tp>
> +::std::enable_if_t<::std::is_integral_v<_Tp> &&
> ::std::is_unsigned_v<_Tp>, _Tp>
> +__dpl_bit_floor(_Tp __x) noexcept
>  {
>      if (__x == 0)
>          return 0;
> @@ -619,24 +619,24 @@ __dpl_bit_floor(_T __x) noexcept
>      return ::std::bit_floor(__x);
>  #elif _ONEDPL_BACKEND_SYCL
>      // Use the count-leading-zeros function
> -    return _T{1} << (sizeof(_T) * CHAR_BIT - sycl::clz(__x) - 1);
> +    return _Tp{1} << (sizeof(_Tp) * CHAR_BIT - sycl::clz(__x) - 1);
>  #else
>      // Fill all the lower bits with 1s
>      __x |= (__x >> 1);
>      __x |= (__x >> 2);
>      __x |= (__x >> 4);
> -    if constexpr (sizeof(_T) > 1) __x |= (__x >> 8);
> -    if constexpr (sizeof(_T) > 2) __x |= (__x >> 16);
> -    if constexpr (sizeof(_T) > 4) __x |= (__x >> 32);
> +    if constexpr (sizeof(_Tp) > 1) __x |= (__x >> 8);
> +    if constexpr (sizeof(_Tp) > 2) __x |= (__x >> 16);
> +    if constexpr (sizeof(_Tp) > 4) __x |= (__x >> 32);
>      __x += 1; // Now it equals to the next greater power of 2, or 0 in
> case of wraparound
> -    return (__x == 0) ? _T{1} << (sizeof(_T) * CHAR_BIT - 1) : __x >> 1;
> +    return (__x == 0) ? _Tp{1} << (sizeof(_Tp) * CHAR_BIT - 1) : __x >> 1;
>  #endif
>  }
>
>  // The max power of 2 not smaller than the given value, same as C++20
> std::bit_ceil
> -template <typename _T>
> -::std::enable_if_t<::std::is_integral_v<_T> && ::std::is_unsigned_v<_T>,
> _T>
> -__dpl_bit_ceil(_T __x) noexcept
> +template <typename _Tp>
> +::std::enable_if_t<::std::is_integral_v<_Tp> &&
> ::std::is_unsigned_v<_Tp>, _Tp>
> +__dpl_bit_ceil(_Tp __x) noexcept
>  {
>      return ((__x & (__x - 1)) != 0) ? __dpl_bit_floor(__x) << 1 : __x;
>  }
> @@ -649,21 +649,21 @@ __dpl_ceiling_div(_T1 __number, _T2 __divisor)
>      return (__number + __divisor - 1) / __divisor;
>  }
>
> -template <typename _T>
> -std::enable_if_t<std::is_floating_point_v<_T>, bool>
> -__dpl_signbit(const _T& __x)
> +template <typename _Tp>
> +std::enable_if_t<std::is_floating_point_v<_Tp>, bool>
> +__dpl_signbit(const _Tp& __x)
>  {
>      return std::signbit(__x);
>  }
>
>  // This prevents ambiguity with std::signbit for integral types on MSVC
> without requiring double support
> -template <typename _T>
> -std::enable_if_t<!std::is_floating_point_v<_T>, bool>
> -__dpl_signbit(const _T& __x)
> +template <typename _Tp>
> +std::enable_if_t<!std::is_floating_point_v<_Tp>, bool>
> +__dpl_signbit(const _Tp& __x)
>  {
> -    using __unsigned_type = std::make_unsigned_t<_T>;
> -    static_assert(std::is_signed_v<_T>, "Only signed types have a
> signbit.");
> -    constexpr __unsigned_type __mask = (__unsigned_type{1} << (sizeof(_T)
> * 8 - 1));
> +    using __unsigned_type = std::make_unsigned_t<_Tp>;
> +    static_assert(std::is_signed_v<_Tp>, "Only signed types have a
> signbit.");
> +    constexpr __unsigned_type __mask = (__unsigned_type{1} <<
> (sizeof(_Tp) * 8 - 1));
>      return (__x & __mask) != 0;
>  }
>
> @@ -693,15 +693,15 @@ using __uint_for_size_t = typename
> __uint_for_size<__size>::type;
>
>  // The floating-point types __order_preserving_cast is defined for: the
> ones with an unsigned integer of the same
>  // size to map onto. A wider type, e.g. a 128-bit long double, is not
> supported.
> -template <typename _T>
> +template <typename _Tp>
>  inline constexpr bool __is_radix_sort_float_v =
>  #if _ONEDPL_BACKEND_SYCL
> -    std::is_same_v<_T, sycl::half> ||
> +    std::is_same_v<_Tp, sycl::half> ||
>  #    if defined(SYCL_EXT_ONEAPI_BFLOAT16)
> -    std::is_same_v<_T, sycl::ext::oneapi::bfloat16> ||
> +    std::is_same_v<_Tp, sycl::ext::oneapi::bfloat16> ||
>  #    endif // defined(SYCL_EXT_ONEAPI_BFLOAT16)
>  #endif     // _ONEDPL_BACKEND_SYCL
> -    (std::is_floating_point_v<_T> && (sizeof(_T) == sizeof(std::uint32_t)
> || sizeof(_T) == sizeof(std::uint64_t)));
> +    (std::is_floating_point_v<_Tp> && (sizeof(_Tp) ==
> sizeof(std::uint32_t) || sizeof(_Tp) == sizeof(std::uint64_t)));
>
>  // Do not use bool directly - other unsupported types may be implicitly
> converted to bool
>  template <bool __is_ascending, typename _BoolT,
> std::enable_if_t<std::is_same_v<_BoolT, bool>, int> = 0>
> @@ -1088,19 +1088,19 @@ struct __spirv_target_conditional :
>  // to determine SPIR-V targets.
>  inline constexpr bool __is_spirv_target_v =
> __spirv_target_conditional<::std::true_type, ::std::false_type>::value;
>
> -template <typename _T, typename = void>
> +template <typename _Tp, typename = void>
>  struct __is_type_with_iterator_traits : std::false_type
>  {
>  };
>
> -template <typename _T>
> +template <typename _Tp>
>  struct __is_type_with_iterator_traits<
> -    _T, std::void_t<typename
> std::iterator_traits<std::remove_reference_t<_T>>::difference_type>> :
> std::true_type
> +    _Tp, std::void_t<typename
> std::iterator_traits<std::remove_reference_t<_Tp>>::difference_type>> :
> std::true_type
>  {
>  };
>
> -template <typename _T>
> -static constexpr bool __is_type_with_iterator_traits_v =
> __is_type_with_iterator_traits<_T>::value;
> +template <typename _Tp>
> +static constexpr bool __is_type_with_iterator_traits_v =
> __is_type_with_iterator_traits<_Tp>::value;
>
>  // Storage helper since _Tp may not have a default constructor.
>  template <typename _Tp>
> @@ -1146,7 +1146,7 @@ struct __scoped_destroyer
>
>  // Optional-like wrapper around __lazy_ctor_storage which manages the
> construction state of the storage and provides
>  // automatic destruction of the contained value when the wrapper goes out
> of scope.
> -template <typename _T>
> +template <typename _Tp>
>  struct __opt_lazy_ctor_storage
>  {
>    public:
> @@ -1196,14 +1196,14 @@ struct __opt_lazy_ctor_storage
>          __constructed = true;
>      }
>
> -    const _T&
> +    const _Tp&
>      __get_cref() const
>      {
>          return __storage.__v;
>      }
>
>    private:
> -    __onedpl::__internal::__lazy_ctor_storage<_T> __storage;
> +    __onedpl::__internal::__lazy_ctor_storage<_Tp> __storage;
>      bool __constructed = false;
>  };
>
> @@ -1219,7 +1219,7 @@ struct __ignore_call_op
>  // To implement __min_nested_type_size, a general utility with an
> internal tuple
>  // specialization, we need to forward declare our internal tuple first as
> tuple_impl.h
>  // already includes this header.
> -template <typename... T>
> +template <typename... _Tp>
>  struct tuple;
>
>  // Returns the smallest type within a set of potentially nested template
> types. This function
> @@ -1227,10 +1227,10 @@ struct tuple;
>  // For all other types, its size is used directly.
>  // E.g. If we consider the type: T = tuple<float, tuple<short, long>,
> int, double>,
>  // then __min_nested_type_size<T>::value returns sizeof(short).
> -template <typename _T>
> +template <typename _Tp>
>  struct __min_nested_type_size
>  {
> -    constexpr static std::size_t value = sizeof(_T);
> +    constexpr static std::size_t value = sizeof(_Tp);
>  };
>
>  template <typename... _Ts>
> @@ -1256,25 +1256,25 @@ struct __swap_fn
>      }
>  };
>
> -template <typename _T>
> +template <typename _Tp>
>  auto
> -__get_last_arg(_T __t)
> +__get_last_arg(_Tp __t)
>  {
>      return __t;
>  }
>
> -template <typename _T, typename... _Rest>
> +template <typename _Tp, typename... _Rest>
>  auto
> -__get_last_arg(_T, _Rest... __args)
> +__get_last_arg(_Tp, _Rest... __args)
>  {
>      return __get_last_arg(__args...);
>  }
>
>  #if _ONEDPL_CPP20_RANGES_PRESENT
> -template <typename _T, typename _Proj>
> +template <typename _Tp, typename _Proj>
>  struct __ranges_equal_value
>  {
> -    _T __value;
> +    _Tp __value;
>      _Proj __proj;
>
>      template <typename _TValue>
> @@ -1303,20 +1303,20 @@ struct __segmented_scan_fun
>      _BinaryOp __binary_op;
>  };
>
> -template <typename _T, typename _Predicate>
> +template <typename _Tp, typename _Predicate>
>  struct __replace_if_fun
>  {
> -    using __result_of = _T;
> +    using __result_of = _Tp;
>
>      template <typename _T1, typename _T2>
> -    _T
> +    _Tp
>      operator()(_T1&& __a, _T2&& __s) const
>      {
>          return __pred(std::forward<_T2>(__s)) ? __new_value : __a;
>      }
>
>      _Predicate __pred;
> -    const _T __new_value;
> +    const _Tp __new_value;
>  };
>
>  template <typename _OutValueType, typename _OutRefType, typename
> _InRefType>
> @@ -1336,9 +1336,9 @@ inline constexpr bool __trivial_uninitialized_move =
>      std::is_trivially_default_constructible_v<_OutValueType> &&
>                       // actual operations
>      std::is_trivially_assignable_v<_OutRefType, _InRefType>;
>
> -template <typename _ValueType, typename _T>
> +template <typename _ValueType, typename _Tp>
>  inline constexpr bool __trivial_uninitialized_fill =
> -    std::is_trivially_constructible_v<_ValueType, _T> &&     // required
> operation
> +    std::is_trivially_constructible_v<_ValueType, _Tp> &&     // required
> operation
>      std::is_trivially_default_constructible_v<_ValueType> && // actual
> operations
>      // the value is expected to be converted to the element type by the
> caller in the actual operation
>      std::is_trivially_copy_assignable_v<_ValueType>;
> --
> 2.56.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20261201/5159591f/attachment-0001.htm>


More information about the Libstdc++ mailing list