Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.35 KB

File metadata and controls

50 lines (35 loc) · 1.35 KB

operator()

  • 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...に対応する要素位置を求める。

テンプレートパラメータ制約

事前条件

多次元インデクス値extents_type::index-cast(idxs)は、多次元配列サイズextents_における有効なインデクスであること。

戻り値

return ((static_cast<index_type>(idxs) * stride(P_rank)) + ... + 0);
  • stride[link stride.md]

例外

投げない

バージョン

言語

  • C++26

処理系

参照