template<class IndexType, size_t N, class ... SliceSpecifiers>
constexpr array<IndexType, sizeof...(SliceSpecifiers)>
src-indices(const array<IndexType, N>& indices, SliceSpecifiers ... slices);
概要
src-indicesはsubmdspan動作説明用の関数テンプレートである。
適格要件
IndexTypeは符号付き整数型または符号無し整数型であること。
戻り値
半開区間[0, sizeof...(SliceSpecifiers))のkに対して、k番目の要素が下記の値を持つ配列を返す。
map-rank[k]がdynamic_extentに等しいとき、first_<IndexType, k>(slices...)- そうでなければ、
first_<IndexType, k>(slices...) + indices[map-rank[k]]
バージョン
言語
- C++26