std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>::mapping-traits
Von cppreference.com
| constexpr bool is_unique() const; |
(1) | (seit C++23) |
| constexpr bool is_exhaustive() const; |
(2) | (seit C++23) |
| constexpr bool is_strided() const; |
(3) | (seit C++23) |
| static constexpr bool is_always_unique(); |
(4) | (seit C++23) |
| static constexpr bool is_always_exhaustive(); |
(5) | (seit C++23) |
| static constexpr bool is_always_strided(); |
(6) | (seit C++23) |
Prüft, ob (1-3) das zugrundeliegende Layout-Mapping map_ oder (4-6) dessen Typ mapping_type die Semantik der Prädikat-Mapping-Traits von LayoutMapping modelliert.
1-3) Sei
func (1) is_unique, (2) is_exhaustive oder (3) is_strided, dann ist dies äquivalent zu return map_.func();.4-6) Sei
func (4) is_always_unique, (5) is_always_exhaustive oder (6) is_always_strided, dann ist dies äquivalent zu return mapping_type::func();.Inhalt |
[bearbeiten] Parameter
(keine)
[bearbeiten] Rückgabewert
Siehe oben.
[bearbeiten] Beispiel
| Dieser Abschnitt ist unvollständig Grund: kein Beispiel |
[bearbeiten] Siehe auch
| Dieser Abschnitt ist unvollständig |