- 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