[mdspan.extents.obs]

# 23 Containers library [[containers]](./#containers)

## 23.7 Views [[views]](views#mdspan.extents.obs)

### 23.7.3 Multidimensional access [[views.multidim]](views.multidim#mdspan.extents.obs)

#### 23.7.3.3 Class template extents [[mdspan.extents]](mdspan.extents#obs)

#### 23.7.3.3.4 Observers of the multidimensional index space [mdspan.extents.obs]

[ð](#lib:static_extent,extents)

`static constexpr size_t static_extent(rank_type i) noexcept;
`

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/containers.tex#L21444)

*Preconditions*: i < rank() is true[.](#1.sentence-1)

[2](#2)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/containers.tex#L21448)

*Returns*: Ei[.](#2.sentence-1)

[ð](#lib:extent,extents)

`constexpr index_type extent(rank_type i) const noexcept;
`

[3](#3)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/containers.tex#L21459)

*Preconditions*: i < rank() is true[.](#3.sentence-1)

[4](#4)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/containers.tex#L21463)

*Returns*: Di[.](#4.sentence-1)
