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

> C++ Atlas: `cppatlas.com/w/cpp/container/mdspan/extents/rev-prod-of-extents` | Source: https://en.cppreference.com/w/cpp/container/mdspan/extents/rev-prod-of-extents | Domain: Containers | Standards: C++23

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

## Official Specification Summary (cppreference)

```cpp
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`.

### Parameters

- `i` - an index above which the sizes of corresponding extents will be multiplied together

### Return value

If `i + 1 < rank()` is `true`, return the product of `extent(k)` for all `k` in range `[i + 1,` `rank())`, otherwise `1`.

### See also

- [`fwd-prod-of-extents`](https://en.cppreference.com/w/cpp/container/mdspan/extents/fwd-prod-of-extents): returns the product of extent size in range `[​0​,` `i)` (exposition-only member function*)

---
Attribution: content from https://en.cppreference.com/w/cpp/container/mdspan/extents/rev-prod-of-extents (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.