Namespaces
Variants
Views
Actions

std::extents<IndexType,Extents...>::fwd-prod-of-extents

From cppreference.com
< cpp‎ | container‎ | mdspan‎ | extents
 
 
 
 
 
constexpr std::size_t rank_type /*fwd-prod-of-extents*/( rank_type i ) const noexcept;
(since C++23)
(exposition only*)

Returns the product of the sizes of extents with index less than i. The behavior is undefined if i <= rank() is false.

Contents

[edit] Parameters

i - The end index of the range of extents to be multiplied together.

[edit] Return value

If i > 0 is true, return the product of extent(k) for all k in range [0i), otherwise 1.

[edit] Example

[edit] See also

returns the product of extents size in range [i + 1rank())
(exposition-only member function*)[edit]