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
Определено в заголовке <mdspan> |
||
|---|---|---|
constexpr bool is_unique() const; |
(1) | (с C++23) |
constexpr bool is_exhaustive() const; |
(2) | (с C++23) |
constexpr bool is_strided() const; |
(3) | (с C++23) |
| Статические члены-функции | ||
static constexpr bool is_always_unique(); |
(4) | (с C++23) |
static constexpr bool is_always_exhaustive(); |
(5) | (с C++23) |
static constexpr bool is_always_strided(); |
(6) | (с C++23) |
Проверка, соответствует ли (1-3) сопоставление макета данных map_ или (4-6) его тип mapping_type определенным характеристикам.
1-3) Пусть
func будет (1) is_unique, (2) is_exhaustive, или (3) is_strided, тогда это эквивалентно return map_.func();.
4-6) Пусть
func будет (4) is_always_unique, (5) is_always_exhaustive, или (6) is_always_strided, тогда это эквивалентно return mapping_type::func();.Параметры
(нет)
Значение возврата
См. выше.
Пример
См. также
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/container/mdspan/mapping_traits