Lines Matching refs:constexpr

53     static constexpr rank_type rank() noexcept { return sizeof...(_Extents); }
54 static constexpr rank_type rank_dynamic() noexcept { return dynamic-index(rank()); }
55 static constexpr size_t static_extent(rank_type) noexcept;
56 constexpr index_type extent(rank_type) const noexcept;
59 constexpr extents() noexcept = default;
62 constexpr explicit(see below)
65 constexpr explicit extents(_OtherIndexTypes...) noexcept;
67 constexpr explicit(N != rank_dynamic())
70 constexpr explicit(N != rank_dynamic())
75 friend constexpr bool operator==(const extents&,
102 constexpr mapping() noexcept = default;
103 constexpr mapping(const mapping&) noexcept = default;
104 constexpr mapping(const extents_type&) noexcept;
106 constexpr explicit(!is_convertible_v<OtherExtents, extents_type>)
109 constexpr explicit(!is_convertible_v<OtherExtents, extents_type>)
112 constexpr explicit(extents_type::rank() > 0)
115 constexpr mapping& operator=(const mapping&) noexcept = default;
118 constexpr const extents_type& extents() const noexcept { return extents_; }
120 constexpr index_type required_span_size() const noexcept;
123 constexpr index_type operator()(Indices...) const noexcept;
125 static constexpr bool is_always_unique() noexcept { return true; }
126 static constexpr bool is_always_exhaustive() noexcept { return true; }
127 static constexpr bool is_always_strided() noexcept { return true; }
129 static constexpr bool is_unique() noexcept { return true; }
130 static constexpr bool is_exhaustive() noexcept { return true; }
131 static constexpr bool is_strided() noexcept { return true; }
133 constexpr index_type stride(rank_type) const noexcept;
136 friend constexpr bool operator==(const mapping&, const mapping<OtherExtents>&) noexcept;
156 constexpr mapping() noexcept = default;
157 constexpr mapping(const mapping&) noexcept = default;
158 constexpr mapping(const extents_type&) noexcept;
160 constexpr explicit(!is_convertible_v<OtherExtents, extents_type>)
163 constexpr explicit(!is_convertible_v<OtherExtents, extents_type>)
166 constexpr explicit(extents_type::rank() > 0)
169 constexpr mapping& operator=(const mapping&) noexcept = default;
172 constexpr const extents_type& extents() const noexcept { return extents_; }
174 constexpr index_type required_span_size() const noexcept;
177 constexpr index_type operator()(Indices...) const noexcept;
179 static constexpr bool is_always_unique() noexcept { return true; }
180 static constexpr bool is_always_exhaustive() noexcept { return true; }
181 static constexpr bool is_always_strided() noexcept { return true; }
183 static constexpr bool is_unique() noexcept { return true; }
184 static constexpr bool is_exhaustive() noexcept { return true; }
185 static constexpr bool is_strided() noexcept { return true; }
187 constexpr index_type stride(rank_type) const noexcept;
190 friend constexpr bool operator==(const mapping&, const mapping<OtherExtents>&) noexcept;
210 static constexpr rank_type rank_ = extents_type::rank(); // exposition only
214 constexpr mapping() noexcept;
215 constexpr mapping(const mapping&) noexcept = default;
217 constexpr mapping(const extents_type&, span<OtherIndexType, rank_>) noexcept;
219 constexpr mapping(const extents_type&, const array<OtherIndexType, rank_>&) noexcept;
222 constexpr explicit(see below) mapping(const StridedLayoutMapping&) noexcept;
224 constexpr mapping& operator=(const mapping&) noexcept = default;
227 constexpr const extents_type& extents() const noexcept { return extents_; }
228 constexpr array<index_type, rank_> strides() const noexcept { return strides_; }
230 constexpr index_type required_span_size() const noexcept;
233 constexpr index_type operator()(Indices...) const noexcept;
235 static constexpr bool is_always_unique() noexcept { return true; }
236 static constexpr bool is_always_exhaustive() noexcept { return false; }
237 static constexpr bool is_always_strided() noexcept { return true; }
239 static constexpr bool is_unique() noexcept { return true; }
240 constexpr bool is_exhaustive() const noexcept;
241 static constexpr bool is_strided() noexcept { return true; }
243 constexpr index_type stride(rank_type i) const noexcept { return strides_[i]; }
246 friend constexpr bool operator==(const mapping&, const OtherMapping&) noexcept;
264 constexpr default_accessor() noexcept = default;
266 constexpr default_accessor(default_accessor<OtherElementType>) noexcept;
267 constexpr reference access(data_handle_type p, size_t i) const noexcept;
268 constexpr data_handle_type offset(data_handle_type p, size_t i) const noexcept;
291 static constexpr rank_type rank() noexcept { return extents_type::rank(); }
292 static constexpr rank_type rank_dynamic() noexcept { return extents_type::rank_dynamic(); }
293 static constexpr size_t static_extent(rank_type r) noexcept
295 constexpr index_type extent(rank_type r) const noexcept { return extents().extent(r); }
298 constexpr mdspan();
299 constexpr mdspan(const mdspan& rhs) = default;
300 constexpr mdspan(mdspan&& rhs) = default;
303 constexpr explicit mdspan(data_handle_type ptr, OtherIndexTypes... exts);
305 constexpr explicit(N != rank_dynamic())
308 constexpr explicit(N != rank_dynamic())
310 constexpr mdspan(data_handle_type p, const extents_type& ext);
311 constexpr mdspan(data_handle_type p, const mapping_type& m);
312 constexpr mdspan(data_handle_type p, const mapping_type& m, const accessor_type& a);
316 constexpr explicit(see below)
320 constexpr mdspan& operator=(const mdspan& rhs) = default;
321 constexpr mdspan& operator=(mdspan&& rhs) = default;
325 constexpr reference operator[](OtherIndexTypes... indices) const;
327 constexpr reference operator[](span<OtherIndexType, rank()> indices) const;
329 constexpr reference operator[](const array<OtherIndexType, rank()>& indices) const;
331 constexpr size_type size() const noexcept;
332 [[nodiscard]] constexpr bool empty() const noexcept;
334 friend constexpr void swap(mdspan& x, mdspan& y) noexcept;
336 constexpr const extents_type& extents() const noexcept { return map_.extents(); }
337 constexpr const data_handle_type& data_handle() const noexcept { return ptr_; }
338 constexpr const mapping_type& mapping() const noexcept { return map_; }
339 constexpr const accessor_type& accessor() const noexcept { return acc_; }
342 static constexpr bool is_always_unique() noexcept
344 static constexpr bool is_always_exhaustive() noexcept
346 static constexpr bool is_always_strided() noexcept
349 constexpr bool is_unique() const
351 constexpr bool is_exhaustive() const
353 constexpr bool is_strided() const
355 constexpr index_type stride(rank_type r) const