# std::extents<IndexType,Extents...>::dynamic-index

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

Returns the number of dynamic extents below index i. If i <= rank() is false, the behavior is undefined.

## Official Specification Summary (cppreference)

```cpp
private:
    static constexpr auto /*dynamic-index*/( rank_type i ) noexcept; // (since C++23) (exposition only*)
```

Returns the number of dynamic extents below index `i`. If `i <= rank()` is `false`, the behavior is undefined.

### Parameters

- `i` - the index

### Return value

The number of `Er` with `r < i` for which `Er` is a dynamic extent.

### See also

> Note: This section is incomplete

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