- [meta exposition-only]
- mdspan[meta header]
- function template[meta id-type]
- cpp26[meta cpp]
template<class IndexType, size_t N, class ... SliceSpecifiers>
constexpr array<IndexType, sizeof...(SliceSpecifiers)>
src-indices(const array<IndexType, N>& indices, SliceSpecifiers ... slices);- array[link /reference/array/array.md]
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