std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::static_extent
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::static_extent
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
static constexpr std::size_t static_extent( rank_type r ) noexcept;
(since C++23)
Statically determines the extent of a mdspan
at the rank index r. If the rank index r corresponds to a dynamic extent, returns std::dynamic_extent. Equivalent to return Extents::static_extent(r);.
Contents
[edit] Parameters
r
-
The rank index to get the static extent size of
[edit] Return value
The static extent size, or std::dynamic_extent.
[edit] Example
This section is incomplete
Reason: no example
Reason: no example
[edit] See also
[static]
extents
at a certain rank index (public static member function of
std::extents<IndexType,Extents...>
) [edit]