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

履歴 編集

function
<mdspan>

std::aligned_accessor::コンストラクタ(C++26)

constexpr aligned_accessor() noexcept = default;  // (1)

template<class OtherElementType, size_t OtherByteAlignment>
constexpr aligned_accessor(
  aligned_accessor<OtherElementType, OtherByteAlignment>) noexcept;  // (2)

template<class OtherElementType>
explicit constexpr aligned_accessor(
  default_accessor<OtherElementType>) noexcept;  // (3)

概要

  • (1) : デフォルトコンストラクタ
  • (2) : 他aligned_accessorからの変換コンストラクタ
  • (3) : default_accessorからの変換コンストラクタ

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

  • (2) :
    • is_convertible_v<OtherElementType(*)[], element_type(*)[]>trueであること
    • OtherByteAlignment > byte_alignment
  • (3) : is_convertible_v<OtherElementType(*)[], element_type(*)[]>trueであること

例外

投げない

バージョン

言語

  • C++26

処理系

参照