std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::size
From cppreference.com
C++
Containers library
| Sequence | ||||
|
(C++11)
|
||||
|
(C++26)
|
||||
|
(C++11)
|
||||
| Associative | ||||
| Unordered associative | ||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
||||
| Adaptors | ||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
| Views | ||||
|
(C++20)
|
||||
|
(C++23)
|
||||
| Tables | ||||
| Iterator invalidation | ||||
| Member function table | ||||
| Non-member function table |
std::mdspan
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
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
Return value
The number of elements.
Example
| This section is incomplete Reason: no example |
See also
| This section is incomplete |