Lines Matching defs:extents
24 #include <__mdspan/extents.h>
66 "mdspan: Extents template parameter must be a specialization of extents.");
94 return __map_.extents().extent(__r);
156 is_constructible_v<extents_type, _OtherExtents>, "mdspan: incompatible extents for mdspan construction");
159 // The extents constructor checks this and the mapping must be storing the extents, since
160 // its extents() function returns a const reference to extents_type.
162 // always construct its extents() only from the dynamic extents, instead of from the other extents.
171 "mdspan: conversion mismatch of source dynamic extents with static extents");
189 _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(__mdspan_detail::__is_multidimensional_index_in(extents(), __indices...),
222 return ((static_cast<size_type>(__map_.extents().extent(_Idxs))) * ... * size_type(1));
228 return (rank() > 0) && ((__map_.extents().extent(_Idxs) == index_type(0)) || ... || false);
238 _LIBCPP_HIDE_FROM_ABI constexpr const extents_type& extents() const noexcept { return __map_.extents(); };
270 _OtherIndexTypes...) -> mdspan<_ElementType, extents<size_t, __maybe_static_ext<_OtherIndexTypes>...>>;
280 mdspan(_Pointer&&) -> mdspan<remove_pointer_t<remove_reference_t<_Pointer>>, extents<size_t>>;
284 mdspan(_CArray&) -> mdspan<remove_all_extents_t<_CArray>, extents<size_t, extent_v<_CArray, 0>>>;
296 mdspan(_ElementType*, const extents<_OtherIndexType, _ExtentsPack...>&)
297 -> mdspan<_ElementType, extents<_OtherIndexType, _ExtentsPack...>>;