Skip to content

Files

Latest commit

0353f38 · Dec 22, 2024

History

History
50 lines (37 loc) · 1.5 KB

op_constructor.md

File metadata and controls

50 lines (37 loc) · 1.5 KB

コンストラクタ

  • mdspan[meta header]
  • function[meta id-type]
  • std[meta namespace]
  • aligned_accessor[meta class]
  • cpp26[meta cpp]
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)
  • default_accessor[link ../default_accessor.md]

概要

  • (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

処理系

参照