- [meta exposition-only]
- mdspan[meta header]
- function template[meta id-type]
- std[meta namespace]
- extents[meta class]
- cpp23[meta cpp]
template<class OtherIndexType>
static constexpr auto index-cast(OtherIndexType&& i) noexcept; // 説明専用多次元配列のインデクス型へと変換する、説明専用のメンバ関数である。
OtherIndexTypeがbool型以外の整数型の場合、return i;と等価。OtherIndexTypeがbool型の場合、return static_cast<index_type>(i);と等価。
投げない
- C++23