• Class / Function / Type

      std::
    • Header file

      <>
    • Other / All

    最終更新日時(UTC):
    が更新

    履歴 編集

    function template
    <mdspan>

    std::layout_right_padded::mapping::operator()

    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);
    

    例外

    投げない

    バージョン

    言語

    • C++26

    処理系

    参照