The new name is _M_dyn_exts and makes space for a method
_M_dynamic_extens, which returns a view of the requested dynamic
extents.

libstdc++-v3/ChangeLog:

        * include/std/mdspan(__mdspan::_ExtentsStorage): Change name
        of private member _M_dynamic_extens to _M_dyn_exts.

Signed-off-by: Luc Grosheintz <luc.groshei...@gmail.com>
---
 libstdc++-v3/include/std/mdspan | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libstdc++-v3/include/std/mdspan b/libstdc++-v3/include/std/mdspan
index 47cfa405e44..e937040900a 100644
--- a/libstdc++-v3/include/std/mdspan
+++ b/libstdc++-v3/include/std/mdspan
@@ -69,7 +69,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
        //
        // If __r is the index of a dynamic extent, then
        // _S_dynamic_index[__r] is the index of that extent in
-       // _M_dynamic_extents.
+       // _M_dyn_exts.
        static constexpr auto _S_dynamic_index = [] consteval
        {
          array<size_t, _S_rank+1> __ret;
@@ -105,7 +105,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
        {
          auto __se = _Extents[__r];
          if (__se == dynamic_extent)
-           return _M_dynamic_extents[_S_dynamic_index[__r]];
+           return _M_dyn_exts[_S_dynamic_index[__r]];
          else
            return __se;
        }
@@ -119,7 +119,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
                size_t __di = __i;
                if constexpr (_OtherRank != _S_rank_dynamic)
                  __di = _S_dynamic_index_inv[__i];
-               _M_dynamic_extents[__i] = _S_int_cast(__get_extent(__di));
+               _M_dyn_exts[__i] = _S_int_cast(__get_extent(__di));
              }
          }
 
@@ -146,7 +146,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
       private:
        using _S_storage = __array_traits<_IndexType, _S_rank_dynamic>::_Type;
-       [[no_unique_address]] _S_storage _M_dynamic_extents;
+       [[no_unique_address]] _S_storage _M_dyn_exts;
       };
 
     template<typename _OIndexType, typename _SIndexType>
-- 
2.49.0

Reply via email to