]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Implement __mdspan::__size.
authorLuc Grosheintz <luc.grosheintz@gmail.com>
Fri, 4 Jul 2025 08:29:46 +0000 (10:29 +0200)
committerTomasz Kamiński <tkaminsk@redhat.com>
Tue, 8 Jul 2025 11:48:56 +0000 (13:48 +0200)
commitaa961cae42e23461887a6cf38aa47413b8425243
tree75fb2797d896b917664fa8a0ad8e8eab32f8753f
parent45b81ebf7815e3cea15f6fb18e83a101a4c50fb3
libstdc++: Implement __mdspan::__size.

The current code uses __mdspan::__fwd_prod(__exts, __rank) to express
computing the size of an extent. This commit adds an function __mdspan::
__size(__exts) to express the idea more directly.

libstdc++-v3/ChangeLog:

* include/std/mdspan (__mdspan::__size): New function.

Reviewed-by: Tomasz Kamiński <tkaminsk@redhat.com>
Signed-off-by: Luc Grosheintz <luc.grosheintz@gmail.com>
libstdc++-v3/include/std/mdspan