- mdspan[meta header]
- function template[meta id-type]
- std[meta namespace]
- layout_left_padded::mapping[meta class]
- cpp26[meta cpp]
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);- stride[link stride.md]
投げない
- C++26
- Clang: ??
- GCC: ??
- ICC: ??
- Visual C++: ??