libycxx

constructor · 10 overloads

std::mdspan::mdspan

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

Constructors

Overloads

  1. constexpr mdspan(
        ) noexcept(is_nothrow_default_constructible_v<data_handle_type> && is_nothrow_default_constructible_v<mapping_type> && is_nothrow_default_constructible_v<accessor_type>)  requires (rank_dynamic() > 0 && is_default_constructible_v<data_handle_type> &&
                 is_default_constructible_v<mapping_type> && is_default_constructible_v<accessor_type>);
    (1)
  2. constexpr mdspan(const mdspan& rhs) = default;
    (2)
  3. template<
        class OtherElementType,
        class OtherExtents,
        class OtherLayoutPolicy,
        class OtherAccessor>
      requires (is_constructible_v<mapping_type, const typename OtherLayoutPolicy::template mapping<OtherExtents>&> &&
                 is_constructible_v<accessor_type, const OtherAccessor&>)
    explicit(!is_convertible_v<const typename OtherLayoutPolicy::template mapping<OtherExtents> &, mapping_type> || !is_convertible_v<const OtherAccessor &, accessor_type>) constexpr mdspan(
        const mdspan<OtherElementType, OtherExtents, OtherLayoutPolicy, OtherAccessor>& other);
    (3)
  4. constexpr mdspan(mdspan&& rhs) = default;
    (4)
  5. constexpr mdspan(
        data_handle_type p,
        const extents_type& ext)  requires (is_constructible_v<mapping_type, const extents_type&> && is_default_constructible_v<accessor_type>);
    (5)
  6. constexpr mdspan(
        data_handle_type p,
        const mapping_type& m)  requires is_default_constructible_v<accessor_type>;
    (6)
  7. template<class... OtherIndexTypes>
      requires ((is_convertible_v<OtherIndexTypes, index_type> && ...) &&
                 (is_nothrow_constructible_v<index_type, OtherIndexTypes> && ...) &&
                 (sizeof...(OtherIndexTypes) == rank(
        ) || sizeof...(OtherIndexTypes) == rank_dynamic()) &&
                 is_constructible_v<mapping_type, extents_type> && is_default_constructible_v<accessor_type>)
    explicit constexpr mdspan(data_handle_type p, OtherIndexTypes... exts);
    (7)
  8. template<class OtherIndexType, size_t N>
      requires (is_convertible_v<const OtherIndexType&, index_type> &&
                 is_nothrow_constructible_v<index_type, const OtherIndexType&> && (N == rank(
        ) || N == rank_dynamic()) &&
                 is_constructible_v<mapping_type, extents_type> && is_default_constructible_v<accessor_type>)
    explicit(N != rank_dynamic(
        )) constexpr mdspan(data_handle_type p, span<OtherIndexType, N> exts);
    (8)
  9. template<class OtherIndexType, size_t N>
      requires (is_convertible_v<const OtherIndexType&, index_type> &&
                 is_nothrow_constructible_v<index_type, const OtherIndexType&> && (N == rank(
        ) || N == rank_dynamic()) &&
                 is_constructible_v<mapping_type, extents_type> && is_default_constructible_v<accessor_type>)
    explicit(N != rank_dynamic(
        )) constexpr mdspan(data_handle_type p, const array<OtherIndexType, N>& exts);
    (9)
  10. constexpr mdspan(
        data_handle_type p,
        const mapping_type& m,
        const accessor_type& a);
    (10)