template< class OtherIndexType > static constexpr auto /*index-cast*/( OtherIndexType&& i ) noexcept; | (since C++23) (exposition only*) |
Casts the index i in type OtherIndexType into certain integral type. It is equivalent to:
return i;, if OtherIndexType is an integral type other than bool and return static_cast<index_type>(i); otherwise. | i | - | the index to be cast |
Cast index.
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/container/mdspan/extents/index-cast