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

履歴 編集

function template
<mdspan>

canonical-index(C++26)

template<class IndexType, class S>
constexpr auto canonical-index(S s);

概要

canonical-indexは、submdspan動作仕様定義で用いられる説明専用の関数テンプレートである。

適格要件

Sintegral-constant-likeのモデルであるとき、extents<IndexType>::index-cast(std::move(s))IndexType型の値として表現できること。

事前条件

extents<IndexType>::index-cast(std::move(s))IndexType型の値として表現できること。

効果

以下と等価

バージョン

言語

  • C++26

関連項目

参照