@@ -576,7 +576,7 @@ __memberwise_forward_assign(_Dest& __dest, _Source&& __source, __type_list<_Up..
576576
577577template <class ... _Tp>
578578class _LIBCPP_NO_SPECIALIZATIONS tuple {
579- typedef __tuple_impl<__make_index_sequence< sizeof ...(_Tp) >, _Tp...> _BaseT;
579+ typedef __tuple_impl<__index_sequence_for<_Tp ...>, _Tp...> _BaseT;
580580
581581 _BaseT __base_;
582582
@@ -858,32 +858,30 @@ public:
858858 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple&
859859 operator =(_If<_And<is_copy_assignable<_Tp>...>::value, tuple, __nat> const & __tuple) noexcept (
860860 _And<is_nothrow_copy_assignable<_Tp>...>::value) {
861- std::__memberwise_copy_assign (*this , __tuple, __make_index_sequence< sizeof ...(_Tp) >());
861+ std::__memberwise_copy_assign (*this , __tuple, __index_sequence_for<_Tp ...>());
862862 return *this ;
863863 }
864864
865865# if _LIBCPP_STD_VER >= 23
866866 _LIBCPP_HIDE_FROM_ABI constexpr const tuple& operator =(tuple const & __tuple) const
867867 requires (_And<is_copy_assignable<const _Tp>...>::value)
868868 {
869- std::__memberwise_copy_assign (*this , __tuple, __make_index_sequence< sizeof ...(_Tp) >());
869+ std::__memberwise_copy_assign (*this , __tuple, __index_sequence_for<_Tp ...>());
870870 return *this ;
871871 }
872872
873873 _LIBCPP_HIDE_FROM_ABI constexpr const tuple& operator =(tuple&& __tuple) const
874874 requires (_And<is_assignable<const _Tp&, _Tp>...>::value)
875875 {
876- std::__memberwise_forward_assign (
877- *this , std::move (__tuple), __type_list<_Tp...>(), __make_index_sequence<sizeof ...(_Tp)>());
876+ std::__memberwise_forward_assign (*this , std::move (__tuple), __type_list<_Tp...>(), __index_sequence_for<_Tp...>());
878877 return *this ;
879878 }
880879# endif // _LIBCPP_STD_VER >= 23
881880
882881 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple&
883882 operator =(_If<_And<is_move_assignable<_Tp>...>::value, tuple, __nat>&& __tuple) noexcept (
884883 _And<is_nothrow_move_assignable<_Tp>...>::value) {
885- std::__memberwise_forward_assign (
886- *this , std::move (__tuple), __type_list<_Tp...>(), __make_index_sequence<sizeof ...(_Tp)>());
884+ std::__memberwise_forward_assign (*this , std::move (__tuple), __type_list<_Tp...>(), __index_sequence_for<_Tp...>());
887885 return *this ;
888886 }
889887
@@ -893,7 +891,7 @@ public:
893891 int > = 0 >
894892 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple&
895893 operator =(tuple<_Up...> const & __tuple) noexcept (_And<is_nothrow_assignable<_Tp&, _Up const &>...>::value) {
896- std::__memberwise_copy_assign (*this , __tuple, __make_index_sequence< sizeof ...(_Tp) >());
894+ std::__memberwise_copy_assign (*this , __tuple, __index_sequence_for<_Tp ...>());
897895 return *this ;
898896 }
899897
@@ -902,8 +900,7 @@ public:
902900 int > = 0 >
903901 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple&
904902 operator =(tuple<_Up...>&& __tuple) noexcept (_And<is_nothrow_assignable<_Tp&, _Up>...>::value) {
905- std::__memberwise_forward_assign (
906- *this , std::move (__tuple), __type_list<_Up...>(), __make_index_sequence<sizeof ...(_Tp)>());
903+ std::__memberwise_forward_assign (*this , std::move (__tuple), __type_list<_Up...>(), __index_sequence_for<_Tp...>());
907904 return *this ;
908905 }
909906
@@ -912,15 +909,15 @@ public:
912909 enable_if_t < _And<_BoolConstant<sizeof ...(_Tp) == sizeof ...(_UTypes)>,
913910 is_assignable<const _Tp&, const _UTypes&>...>::value>* = nullptr >
914911 _LIBCPP_HIDE_FROM_ABI constexpr const tuple& operator =(const tuple<_UTypes...>& __u) const {
915- std::__memberwise_copy_assign (*this , __u, __make_index_sequence< sizeof ...(_Tp) >());
912+ std::__memberwise_copy_assign (*this , __u, index_sequence_for<_Tp ...>());
916913 return *this ;
917914 }
918915
919916 template <class ... _UTypes,
920917 enable_if_t < _And<_BoolConstant<sizeof ...(_Tp) == sizeof ...(_UTypes)>,
921918 is_assignable<const _Tp&, _UTypes>...>::value>* = nullptr >
922919 _LIBCPP_HIDE_FROM_ABI constexpr const tuple& operator =(tuple<_UTypes...>&& __u) const {
923- std::__memberwise_forward_assign (*this , __u, __type_list<_UTypes...>(), __make_index_sequence< sizeof ...(_Tp) >());
920+ std::__memberwise_forward_assign (*this , __u, __type_list<_UTypes...>(), index_sequence_for<_Tp ...>());
924921 return *this ;
925922 }
926923# endif // _LIBCPP_STD_VER >= 23
@@ -986,7 +983,7 @@ public:
986983 __enable_if_t < _And< _BoolConstant<_Np == sizeof ...(_Tp)>, is_assignable<_Tp&, _Up const &>... >::value, int > = 0 >
987984 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple&
988985 operator =(array<_Up, _Np> const & __array) noexcept (_And<is_nothrow_assignable<_Tp&, _Up const &>...>::value) {
989- std::__memberwise_copy_assign (*this , __array, __make_index_sequence< sizeof ...(_Tp) >());
986+ std::__memberwise_copy_assign (*this , __array, __index_sequence_for<_Tp ...>());
990987 return *this ;
991988 }
992989
@@ -998,7 +995,7 @@ public:
998995 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple&
999996 operator =(array<_Up, _Np>&& __array) noexcept (_And<is_nothrow_assignable<_Tp&, _Up>...>::value) {
1000997 std::__memberwise_forward_assign (
1001- *this , std::move (__array), __type_list<_If<true , _Up, _Tp>...>(), __make_index_sequence< sizeof ...(_Tp) >());
998+ *this , std::move (__array), __type_list<_If<true , _Up, _Tp>...>(), __index_sequence_for<_Tp ...>());
1002999 return *this ;
10031000 }
10041001
0 commit comments