Lines Matching refs:constexpr

49     static constexpr rank_type rank() noexcept { return sizeof...(_Extents); }
50 static constexpr rank_type rank_dynamic() noexcept { return dynamic-index(rank()); }
51 static constexpr size_t static_extent(rank_type) noexcept;
52 constexpr index_type extent(rank_type) const noexcept;
55 constexpr extents() noexcept = default;
58 constexpr explicit(see below)
61 constexpr explicit extents(_OtherIndexTypes...) noexcept;
63 constexpr explicit(N != rank_dynamic())
66 constexpr explicit(N != rank_dynamic())
71 friend constexpr bool operator==(const extents&,
98 constexpr mapping() noexcept = default;
99 constexpr mapping(const mapping&) noexcept = default;
100 constexpr mapping(const extents_type&) noexcept;
102 constexpr explicit(!is_convertible_v<OtherExtents, extents_type>)
105 constexpr explicit(!is_convertible_v<OtherExtents, extents_type>)
108 constexpr explicit(extents_type::rank() > 0)
111 constexpr mapping& operator=(const mapping&) noexcept = default;
114 constexpr const extents_type& extents() const noexcept { return extents_; }
116 constexpr index_type required_span_size() const noexcept;
119 constexpr index_type operator()(Indices...) const noexcept;
121 static constexpr bool is_always_unique() noexcept { return true; }
122 static constexpr bool is_always_exhaustive() noexcept { return true; }
123 static constexpr bool is_always_strided() noexcept { return true; }
125 static constexpr bool is_unique() noexcept { return true; }
126 static constexpr bool is_exhaustive() noexcept { return true; }
127 static constexpr bool is_strided() noexcept { return true; }
129 constexpr index_type stride(rank_type) const noexcept;
132 friend constexpr bool operator==(const mapping&, const mapping<OtherExtents>&) noexcept;
152 constexpr mapping() noexcept = default;
153 constexpr mapping(const mapping&) noexcept = default;
154 constexpr mapping(const extents_type&) noexcept;
156 constexpr explicit(!is_convertible_v<OtherExtents, extents_type>)
159 constexpr explicit(!is_convertible_v<OtherExtents, extents_type>)
162 constexpr explicit(extents_type::rank() > 0)
165 constexpr mapping& operator=(const mapping&) noexcept = default;
168 constexpr const extents_type& extents() const noexcept { return extents_; }
170 constexpr index_type required_span_size() const noexcept;
173 constexpr index_type operator()(Indices...) const noexcept;
175 static constexpr bool is_always_unique() noexcept { return true; }
176 static constexpr bool is_always_exhaustive() noexcept { return true; }
177 static constexpr bool is_always_strided() noexcept { return true; }
179 static constexpr bool is_unique() noexcept { return true; }
180 static constexpr bool is_exhaustive() noexcept { return true; }
181 static constexpr bool is_strided() noexcept { return true; }
183 constexpr index_type stride(rank_type) const noexcept;
186 friend constexpr bool operator==(const mapping&, const mapping<OtherExtents>&) noexcept;
206 static constexpr rank_type rank_ = extents_type::rank(); // exposition only
210 constexpr mapping() noexcept;
211 constexpr mapping(const mapping&) noexcept = default;
213 constexpr mapping(const extents_type&, span<OtherIndexType, rank_>) noexcept;
215 constexpr mapping(const extents_type&, const array<OtherIndexType, rank_>&) noexcept;
218 constexpr explicit(see below) mapping(const StridedLayoutMapping&) noexcept;
220 constexpr mapping& operator=(const mapping&) noexcept = default;
223 constexpr const extents_type& extents() const noexcept { return extents_; }
224 constexpr array<index_type, rank_> strides() const noexcept { return strides_; }
226 constexpr index_type required_span_size() const noexcept;
229 constexpr index_type operator()(Indices...) const noexcept;
231 static constexpr bool is_always_unique() noexcept { return true; }
232 static constexpr bool is_always_exhaustive() noexcept { return false; }
233 static constexpr bool is_always_strided() noexcept { return true; }
235 static constexpr bool is_unique() noexcept { return true; }
236 constexpr bool is_exhaustive() const noexcept;
237 static constexpr bool is_strided() noexcept { return true; }
239 constexpr index_type stride(rank_type i) const noexcept { return strides_[i]; }
242 friend constexpr bool operator==(const mapping&, const OtherMapping&) noexcept;
260 constexpr default_accessor() noexcept = default;
262 constexpr default_accessor(default_accessor<OtherElementType>) noexcept;
263 constexpr reference access(data_handle_type p, size_t i) const noexcept;
264 constexpr data_handle_type offset(data_handle_type p, size_t i) const noexcept;
287 static constexpr rank_type rank() noexcept { return extents_type::rank(); }
288 static constexpr rank_type rank_dynamic() noexcept { return extents_type::rank_dynamic(); }
289 static constexpr size_t static_extent(rank_type r) noexcept
291 constexpr index_type extent(rank_type r) const noexcept { return extents().extent(r); }
294 constexpr mdspan();
295 constexpr mdspan(const mdspan& rhs) = default;
296 constexpr mdspan(mdspan&& rhs) = default;
299 constexpr explicit mdspan(data_handle_type ptr, OtherIndexTypes... exts);
301 constexpr explicit(N != rank_dynamic())
304 constexpr explicit(N != rank_dynamic())
306 constexpr mdspan(data_handle_type p, const extents_type& ext);
307 constexpr mdspan(data_handle_type p, const mapping_type& m);
308 constexpr mdspan(data_handle_type p, const mapping_type& m, const accessor_type& a);
312 constexpr explicit(see below)
316 constexpr mdspan& operator=(const mdspan& rhs) = default;
317 constexpr mdspan& operator=(mdspan&& rhs) = default;
321 constexpr reference operator[](OtherIndexTypes... indices) const;
323 constexpr reference operator[](span<OtherIndexType, rank()> indices) const;
325 constexpr reference operator[](const array<OtherIndexType, rank()>& indices) const;
327 constexpr size_type size() const noexcept;
328 [[nodiscard]] constexpr bool empty() const noexcept;
330 friend constexpr void swap(mdspan& x, mdspan& y) noexcept;
332 constexpr const extents_type& extents() const noexcept { return map_.extents(); }
333 constexpr const data_handle_type& data_handle() const noexcept { return ptr_; }
334 constexpr const mapping_type& mapping() const noexcept { return map_; }
335 constexpr const accessor_type& accessor() const noexcept { return acc_; }
338 static constexpr bool is_always_unique() noexcept
340 static constexpr bool is_always_exhaustive() noexcept
342 static constexpr bool is_always_strided() noexcept
345 constexpr bool is_unique() const
347 constexpr bool is_exhaustive() const
349 constexpr bool is_strided() const
351 constexpr index_type stride(rank_type r) const