]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Rename _CwFixedValue::_S_type member
authorJonathan Wakely <jwakely@redhat.com>
Tue, 9 Sep 2025 12:57:54 +0000 (13:57 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 9 Sep 2025 13:26:15 +0000 (14:26 +0100)
Rename _S_type to __type as it's not a static member.

Also rename _Tp to _Xv because it's not a type.

libstdc++-v3/ChangeLog:

* include/std/type_traits (_CwFixedValue::_S_type): Rename to
__type.
(constant_wrapper): Rename template parameter in declaration to
match later definition.

libstdc++-v3/include/std/type_traits

index 42a1e7f1732bca2504a20e253b57d5853c969118..77ebb7e2c2f95d15dfad7fcd16d5724d1a1ffc08 100644 (file)
@@ -4307,19 +4307,19 @@ template<typename _Ret, typename _Fn, typename... _Args>
   template<typename _Tp>
     struct _CwFixedValue
     {
-      using _S_type = _Tp;
+      using __type = _Tp;
 
       constexpr
-      _CwFixedValue(_S_type __v) noexcept
+      _CwFixedValue(__type __v) noexcept
       : _M_data(__v) { }
 
-      _S_type _M_data;
+      __type _M_data;
     };
 
   template<typename _Tp, size_t _Extent>
     struct _CwFixedValue<_Tp[_Extent]>
     {
-      using _S_type = _Tp[_Extent];
+      using __type = _Tp[_Extent];
 
       constexpr
       _CwFixedValue(_Tp (&__arr)[_Extent]) noexcept
@@ -4338,8 +4338,8 @@ template<typename _Ret, typename _Fn, typename... _Args>
   template<typename _Tp, size_t _Extent>
     _CwFixedValue(_Tp (&)[_Extent]) -> _CwFixedValue<_Tp[_Extent]>;
 
-  template<_CwFixedValue _Tp,
-          typename = typename decltype(_CwFixedValue(_Tp))::_S_type>
+  template<_CwFixedValue _Xv,
+          typename = typename decltype(_CwFixedValue(_Xv))::__type>
     struct constant_wrapper;
 
   template<typename _Tp>
@@ -4653,7 +4653,7 @@ template<typename _Ret, typename _Fn, typename... _Args>
   {
     static constexpr const auto& value = _Xv._M_data;
     using type = constant_wrapper;
-    using value_type = typename decltype(_Xv)::_S_type;
+    using value_type = typename decltype(_Xv)::__type;
 
     template<_ConstExprParam _Right>
       constexpr auto