libycxx

constructor · 8 overloads

std::layout_right_padded::mapping::mapping

Header
<mdspan>
Scope
std::layout_right_padded::mapping
cppreference
std::layout_right_padded nearest page

Constructors

Overloads

  1. constexpr mapping() noexcept;
    (1)
  2. constexpr mapping(const mapping& other) noexcept = default;
    (2)
  3. constexpr mapping(const extents_type& ext);
    (3)
  4. template<class LayoutLeftPaddedMapping>
      requires ((md-left-padded-mapping<LayoutLeftPaddedMapping> ||
                  md-mapping-of<layout_left, LayoutLeftPaddedMapping>) &&
                 rank <= 1 && is_constructible_v<extents_type, typename LayoutLeftPaddedMapping::extents_type>)
    explicit(!is_convertible_v<typename LayoutLeftPaddedMapping::extents_type, extents_type>) constexpr mapping(
        const LayoutLeftPaddedMapping& other) noexcept;
    (4)
  5. template<class LayoutRightPaddedMapping>
      requires (md-right-padded-mapping<LayoutRightPaddedMapping> &&
                 is_constructible_v<extents_type, typename LayoutRightPaddedMapping::extents_type>)
    explicit(!is_convertible_v<typename LayoutRightPaddedMapping::extents_type, extents_type> || (rank_ > 1 && (padding_value != dynamic_extent || LayoutRightPaddedMapping::padding_value == dynamic_extent))) constexpr mapping(
        const LayoutRightPaddedMapping& other);
    (5)
  6. template<class OtherExtents>
      requires is_constructible_v<extents_type, OtherExtents>
    explicit(!is_convertible_v<OtherExtents, extents_type>) constexpr mapping(
        const layout_right::mapping<OtherExtents>& other);
    (6)
  7. template<class OtherExtents>
      requires is_constructible_v<extents_type, OtherExtents>
    explicit(!(
        rank_ == 0 && is_convertible_v<OtherExtents, extents_type>)) constexpr mapping(const layout_stride::mapping<OtherExtents>& other);
    (7)
  8. template<class OtherIndexType>
      requires (is_convertible_v<OtherIndexType, index_type> && is_nothrow_constructible_v<index_type, OtherIndexType>)
    constexpr mapping(const extents_type& ext, OtherIndexType padding);
    (8)