template<class... Indices>
constexpr size_t operator()(Indices... idxs) const noexcept;
概要
多次元インデクス値idxs...に対応する要素位置を求める。
テンプレートパラメータ制約
sizeof...(Indices) == rank_がtrue、かつ(is_convertible_v<Indices, index_type> && ...)がtrue、かつ(is_nothrow_constructible_v<index_type, Indices> && ...)がtrueであること。
事前条件
多次元インデクス値extents_type::index-cast(idxs)は、多次元配列サイズextents_における有効なインデクスであること。
戻り値
return ((static_cast<index_type>(idxs) * stride(P_rank)) + ... + 0);
例外
投げない
バージョン
言語
- C++26
処理系
- Clang: ??
- GCC: ??
- ICC: ??
- Visual C++: ??