std::extents<IndexType,Extents...>::index-cast

Casts the index i of type OtherIndexType into a certain integral type.

# Declarations

template< class OtherIndexType >
static constexpr auto /*index-cast*/( OtherIndexType&& i ) noexcept;

(since C++23) (exposition only*)

# Parameters

# Return value

Cast index.

# Notes

A call to this function will always return an integral type other than bool. Integer-class types can use the static_cast branch without loss of precision because this function’s call sites are already constrained on the convertibility of OtherIndexType to index_type.