On this page
std::extents<IndexType,Extents...>::index-cast
|
(since C++23) (exposition only*) |
Casts the index i
in type OtherIndexType
into certain integral type. It is equivalent to:
return i;
, ifOtherIndexType
is an integral type other than bool andreturn static_cast<index_type>(i);
otherwise.
Parameters
i | - | the index to be cast |
Return value
Cast index.
Notes
Example
See also
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/container/mdspan/extents/index-cast