@@ -577,7 +577,7 @@ __memberwise_forward_assign(_Dest& __dest, _Source&& __source, __type_list<_Up..
577577
578578template <class ... _Tp>
579579class _LIBCPP_NO_SPECIALIZATIONS tuple {
580- typedef __tuple_impl<__make_index_sequence< sizeof ...(_Tp) >, _Tp...> _BaseT;
580+ typedef __tuple_impl<__index_sequence_for<_Tp ...>, _Tp...> _BaseT;
581581
582582 _BaseT __base_;
583583
@@ -860,32 +860,30 @@ public:
860860 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple&
861861 operator =(_If<_And<is_copy_assignable<_Tp>...>::value, tuple, __nat> const & __tuple) noexcept (
862862 _And<is_nothrow_copy_assignable<_Tp>...>::value) {
863- std::__memberwise_copy_assign (*this , __tuple, __make_index_sequence< sizeof ...(_Tp) >());
863+ std::__memberwise_copy_assign (*this , __tuple, __index_sequence_for<_Tp ...>());
864864 return *this ;
865865 }
866866
867867# if _LIBCPP_STD_VER >= 23
868868 _LIBCPP_HIDE_FROM_ABI constexpr const tuple& operator =(tuple const & __tuple) const
869869 requires (_And<is_copy_assignable<const _Tp>...>::value)
870870 {
871- std::__memberwise_copy_assign (*this , __tuple, __make_index_sequence< sizeof ...(_Tp) >());
871+ std::__memberwise_copy_assign (*this , __tuple, __index_sequence_for<_Tp ...>());
872872 return *this ;
873873 }
874874
875875 _LIBCPP_HIDE_FROM_ABI constexpr const tuple& operator =(tuple&& __tuple) const
876876 requires (_And<is_assignable<const _Tp&, _Tp>...>::value)
877877 {
878- std::__memberwise_forward_assign (
879- *this , std::move (__tuple), __type_list<_Tp...>(), __make_index_sequence<sizeof ...(_Tp)>());
878+ std::__memberwise_forward_assign (*this , std::move (__tuple), __type_list<_Tp...>(), __index_sequence_for<_Tp...>());
880879 return *this ;
881880 }
882881# endif // _LIBCPP_STD_VER >= 23
883882
884883 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple&
885884 operator =(_If<_And<is_move_assignable<_Tp>...>::value, tuple, __nat>&& __tuple) noexcept (
886885 _And<is_nothrow_move_assignable<_Tp>...>::value) {
887- std::__memberwise_forward_assign (
888- *this , std::move (__tuple), __type_list<_Tp...>(), __make_index_sequence<sizeof ...(_Tp)>());
886+ std::__memberwise_forward_assign (*this , std::move (__tuple), __type_list<_Tp...>(), __index_sequence_for<_Tp...>());
889887 return *this ;
890888 }
891889
@@ -895,7 +893,7 @@ public:
895893 int > = 0 >
896894 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple&
897895 operator =(tuple<_Up...> const & __tuple) noexcept (_And<is_nothrow_assignable<_Tp&, _Up const &>...>::value) {
898- std::__memberwise_copy_assign (*this , __tuple, __make_index_sequence< sizeof ...(_Tp) >());
896+ std::__memberwise_copy_assign (*this , __tuple, __index_sequence_for<_Tp ...>());
899897 return *this ;
900898 }
901899
@@ -904,8 +902,7 @@ public:
904902 int > = 0 >
905903 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple&
906904 operator =(tuple<_Up...>&& __tuple) noexcept (_And<is_nothrow_assignable<_Tp&, _Up>...>::value) {
907- std::__memberwise_forward_assign (
908- *this , std::move (__tuple), __type_list<_Up...>(), __make_index_sequence<sizeof ...(_Tp)>());
905+ std::__memberwise_forward_assign (*this , std::move (__tuple), __type_list<_Up...>(), __index_sequence_for<_Tp...>());
909906 return *this ;
910907 }
911908
@@ -914,15 +911,15 @@ public:
914911 enable_if_t < _And<_BoolConstant<sizeof ...(_Tp) == sizeof ...(_UTypes)>,
915912 is_assignable<const _Tp&, const _UTypes&>...>::value>* = nullptr >
916913 _LIBCPP_HIDE_FROM_ABI constexpr const tuple& operator =(const tuple<_UTypes...>& __u) const {
917- std::__memberwise_copy_assign (*this , __u, __make_index_sequence< sizeof ...(_Tp) >());
914+ std::__memberwise_copy_assign (*this , __u, index_sequence_for<_Tp ...>());
918915 return *this ;
919916 }
920917
921918 template <class ... _UTypes,
922919 enable_if_t < _And<_BoolConstant<sizeof ...(_Tp) == sizeof ...(_UTypes)>,
923920 is_assignable<const _Tp&, _UTypes>...>::value>* = nullptr >
924921 _LIBCPP_HIDE_FROM_ABI constexpr const tuple& operator =(tuple<_UTypes...>&& __u) const {
925- std::__memberwise_forward_assign (*this , __u, __type_list<_UTypes...>(), __make_index_sequence< sizeof ...(_Tp) >());
922+ std::__memberwise_forward_assign (*this , __u, __type_list<_UTypes...>(), index_sequence_for<_Tp ...>());
926923 return *this ;
927924 }
928925# endif // _LIBCPP_STD_VER >= 23
@@ -988,7 +985,7 @@ public:
988985 __enable_if_t < _And< _BoolConstant<_Np == sizeof ...(_Tp)>, is_assignable<_Tp&, _Up const &>... >::value, int > = 0 >
989986 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple&
990987 operator =(array<_Up, _Np> const & __array) noexcept (_And<is_nothrow_assignable<_Tp&, _Up const &>...>::value) {
991- std::__memberwise_copy_assign (*this , __array, __make_index_sequence< sizeof ...(_Tp) >());
988+ std::__memberwise_copy_assign (*this , __array, __index_sequence_for<_Tp ...>());
992989 return *this ;
993990 }
994991
@@ -1000,7 +997,7 @@ public:
1000997 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple&
1001998 operator =(array<_Up, _Np>&& __array) noexcept (_And<is_nothrow_assignable<_Tp&, _Up>...>::value) {
1002999 std::__memberwise_forward_assign (
1003- *this , std::move (__array), __type_list<_If<true , _Up, _Tp>...>(), __make_index_sequence< sizeof ...(_Tp) >());
1000+ *this , std::move (__array), __type_list<_If<true , _Up, _Tp>...>(), __index_sequence_for<_Tp ...>());
10041001 return *this ;
10051002 }
10061003
0 commit comments