Namespaces
Variants

std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::mapping-traits

From cppreference.com
 
 
 
 
constexpr bool is_unique() const;
(1) (since C++23)
constexpr bool is_exhaustive() const;
(2) (since C++23)
constexpr bool is_strided() const;
(3) (since C++23)
static constexpr bool is_always_unique();
(4) (since C++23)
static constexpr bool is_always_exhaustive();
(5) (since C++23)
static constexpr bool is_always_strided();
(6) (since C++23)

Checks if (1-3) the underlying layout mapping map_ or (4-6) its type mapping_type models the semantics of LayoutMapping's predicate mapping traits.

1) Equivalent to return map_.is_unique();.
2) Equivalent to return map_.is_exhaustive();.
3) Equivalent to return map_.is_strided();.
4) Equivalent to return mapping_type::is_always_unique();.
5) Equivalent to return mapping_type::is_always_exhaustive();.
6) Equivalent to return mapping_type::is_always_strided();.

Return value

true if LayoutMapping's mapping traits are modeled; otherwise, false.

Example

See also