Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 723 Bytes

index-cast.md

File metadata and controls

32 lines (22 loc) · 723 Bytes

index-cast

  • mdspan[meta header]
  • function template[meta id-type]
  • std[meta namespace]
  • extents[meta class]
  • cpp23[meta cpp]
template<class OtherIndexType>
static constexpr auto index-cast(OtherIndexType&& i) noexcept; // 説明専用

概要

多次元配列のインデクス型へと変換する、説明専用のメンバ関数である。

戻り値

  • OtherIndexTypebool型以外の整数型の場合、return i;と等価。
  • OtherIndexTypebool型の場合、return static_cast<index_type>(i);と等価。

例外

投げない

バージョン

言語

  • C++23

参照