Home
last modified time | relevance | path

Searched refs:extents_type (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/llvm-project/libcxx/include/__mdspan/
H A Dlayout_left.h49 using extents_type = _Extents; variable
50 using index_type = typename extents_type::index_type;
51 using size_type = typename extents_type::size_type;
52 using rank_type = typename extents_type::rank_type;
56 …E_FROM_ABI static constexpr bool __required_span_size_is_representable(const extents_type& __ext) { in __required_span_size_is_representable()
57 if constexpr (extents_type::rank() == 0) in __required_span_size_is_representable()
61 for (rank_type __r = 1; __r < extents_type::rank(); __r++) { in __required_span_size_is_representable()
69 …static_assert(extents_type::rank_dynamic() > 0 || __required_span_size_is_representable(extents_ty…
76 _LIBCPP_HIDE_FROM_ABI constexpr mapping(const extents_type& __ext) noexcept : __extents_(__ext) { in mapping()
85 requires(is_constructible_v<extents_type, _OtherExtents>) in requires() argument
[all …]
H A Dlayout_right.h49 using extents_type = _Extents; variable
50 using index_type = typename extents_type::index_type;
51 using size_type = typename extents_type::size_type;
52 using rank_type = typename extents_type::rank_type;
56 …E_FROM_ABI static constexpr bool __required_span_size_is_representable(const extents_type& __ext) { in __required_span_size_is_representable()
57 if constexpr (extents_type::rank() == 0) in __required_span_size_is_representable()
61 for (rank_type __r = 1; __r < extents_type::rank(); __r++) { in __required_span_size_is_representable()
69 …static_assert(extents_type::rank_dynamic() > 0 || __required_span_size_is_representable(extents_ty…
76 _LIBCPP_HIDE_FROM_ABI constexpr mapping(const extents_type& __ext) noexcept : __extents_(__ext) { in mapping()
85 requires(is_constructible_v<extents_type, _OtherExtents>) in requires() argument
[all …]
H A Dlayout_stride.h53 is_same_v<typename _Layout::template mapping<typename _Mapping::extents_type>, _Mapping>;
58 requires __is_extents_v<typename _Mapping::extents_type>;
74 using extents_type = _Extents; variable
75 using index_type = typename extents_type::index_type;
76 using size_type = typename extents_type::size_type;
77 using rank_type = typename extents_type::rank_type;
81 static constexpr rank_type __rank_ = extents_type::rank();
84 …E_FROM_ABI static constexpr bool __required_span_size_is_representable(const extents_type& __ext) { in __required_span_size_is_representable()
99 …__required_span_size_is_representable(const extents_type& __ext, span<_OtherIndexType, __rank_> __… in __required_span_size_is_representable()
128 if constexpr (_StridedMapping::extents_type::rank() == 0) { in __offset()
[all …]
H A Dmdspan.h78 using extents_type = _Extents;
81 using mapping_type = typename layout_type::template mapping<extents_type>;
84 using index_type = typename extents_type::index_type;
85 using size_type = typename extents_type::size_type;
86 using rank_type = typename extents_type::rank_type;
90 _LIBCPP_HIDE_FROM_ABI static constexpr rank_type rank() noexcept { return extents_type::rank(); } in rank()
91 …_LIBCPP_HIDE_FROM_ABI static constexpr rank_type rank_dynamic() noexcept { return extents_type::ra… in rank_dynamic()
93 return extents_type::static_extent(__r); in static_extent()
104 requires((extents_type::rank_dynamic() > 0) && is_default_constructible_v<data_handle_type> &&
114 … is_constructible_v<mapping_type, extents_type> && is_default_constructible_v<accessor_type>)
[all …]
/freebsd/contrib/llvm-project/libcxx/include/
H A Dmdspan99 using extents_type = Extents;
100 using index_type = typename extents_type::index_type;
101 using size_type = typename extents_type::size_type;
102 using rank_type = typename extents_type::rank_type;
108 constexpr mapping(const extents_type&) noexcept;
110 constexpr explicit(!is_convertible_v<OtherExtents, extents_type>)
113 constexpr explicit(!is_convertible_v<OtherExtents, extents_type>)
116 constexpr explicit(extents_type::rank() > 0)
122 constexpr const extents_type& extents() const noexcept { return extents_; }
143 extents_type extents_{}; // exposition only
[all …]