On this page
std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::is_unique, std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::is_exhaustive, std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::is_strided, std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::is_always_unique, std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::is_always_exhaustive, std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::is_always_strided
Defined in header <mdspan> |
||
---|---|---|
|
(1) | (since C++23) |
|
(2) | (since C++23) |
|
(3) | (since C++23) |
static member functions | ||
|
(4) | (since C++23) |
|
(5) | (since C++23) |
|
(6) | (since C++23) |
Check if (1-3) the layout mapping map_
or (4-6) its type mapping_type
satisfies some traits.
1-3) Let
func
be (1) is_unique
, (2) is_exhaustive
, or (3) is_strided
, then it's equivalent to return map_.func();
.
4-6) Let
func
be (4) is_always_unique
, (5) is_always_exhaustive
, or (6) is_always_strided
, then it's equivalent to return mapping_type::func();
.
Parameters
(none)
Return value
See above.
Example
See also
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/container/mdspan/mapping_traits