libycxx

class template

std::mdspan

Header
<mdspan>
Scope
std
cppreference
std::mdspan

Synopsis

template<
    class ElementType,
    class Extents,
    class LayoutPolicy = layout_right,
    class AccessorPolicy = default_accessor<ElementType>>
class mdspan;

Member types

NameDeclaration
accessor_typetype alias · member type= AccessorPolicy
data_handle_typetype alias · member type= accessor_type::data_handle_type
element_typetype alias · member type= ElementType
extents_typetype alias · member type= Extents
index_typetype alias · member type= extents_type::index_type
layout_typetype alias · member type= LayoutPolicy
mapping_typetype alias · member type= layout_type::mapping<extents_type>
rank_typetype alias · member type= extents_type::rank_type
referencetype alias · member type= accessor_type::reference
size_typetype alias · member type= extents_type::size_type
value_typetype alias · member type= remove_cv_t<element_type>

Member functions

NameDeclaration
mdspanconstructor · 10 overloadsmdspan() +9 more
operator=operator · 2 overloadsmdspan& operator=(const mdspan& rhs) +1 more
accessormember functionconst accessor_type& accessor() const
atmember function template · 3 overloadsreference at(span<OtherIndexType, rank()> indices) const +2 more
data_handlemember functionconst data_handle_type& data_handle() const
emptymember functionbool empty() const
extentmember functionindex_type extent(rank_type r) const
extentsmember functionconst extents_type& extents() const
is_exhaustivemember functionbool is_exhaustive() const
is_stridedmember functionbool is_strided() const
is_uniquemember functionbool is_unique() const
mappingmember functionconst mapping_type& mapping() const
operator[]operator template · 3 overloadsreference operator[](span<OtherIndexType, rank()> indices) const +2 more
sizemember functionsize_type size() const
stridemember functionindex_type stride(rank_type r) const

Static member functions

NameDeclaration
is_always_exhaustivestatic member functionbool is_always_exhaustive()
is_always_stridedstatic member functionbool is_always_strided()
is_always_uniquestatic member functionbool is_always_unique()
rankstatic member functionrank_type rank()
rank_dynamicstatic member functionrank_type rank_dynamic()
static_extentstatic member functionsize_t static_extent(rank_type r)