std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::size
From cppreference.com
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Containers library
(C++17)
(C++11)
(C++26)
(C++26)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++23)
(C++23)
(C++23)
(C++23)
(C++20)
(C++23)
Tables
std::mdspan
mdspan::size
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
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.
[edit] Return value
The number of elements.
[edit] Example
This section is incomplete
Reason: no example
Reason: no example
[edit] See also
This section is incomplete