std::extents<IndexType,Extents...>::rev-prod-of-extents
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
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
std::extents
extents::rev-prod-of-extents
constexpr std::size_t /*rev-prod-of-extents*/( rank_type i ) const noexcept;
(since C++23) (exposition only*)
Returns the product of the sizes of extents with index greater than i. The behavior is undefined if i < rank() is false.
[edit] Parameters
i
-
an index above which the sizes of corresponding extents will be multiplied together
[edit] Return value
If i + 1 < rank() is true, return the product of extent
(k) for all k
in range [
i + 1,
rank())
, otherwise 1.