table of contents
other versions
- Tumbleweed 2026.11.13-1.1
- Leap-16.0
| std::mdspan::size(3) | C++ Standard Libary | std::mdspan::size(3) |
NAME¶
std::mdspan::size - std::mdspan::size
Synopsis¶
constexpr size_type size() const noexcept; (since C++23)
Returns the number of elements in mdspan.
Equivalent to extents().fwd-prod-of-extents(rank()).
The size of the multidimensional index space extents() must be representable as a value of type size_type. Otherwise, the behavior is undefined.
Return value¶
The number of elements.
Example¶
This section is incomplete
Reason: no example
See also¶
This section is incomplete
| 2026.11.10 | http://cppreference.com |