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