Namespaces
Variants

std::layout_stride::mapping<Extents>:: mapping-traits

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

Jede Instanz jeder Spezialisierung von mapping ist einzigartig und gestrided.

Die Abbildung ist erschöpfend, wenn eine der folgenden Bedingungen true ist:

  • rank_ ist 0 , oder
  • es existiert eine Permutation p der ganzen Zahlen im Bereich [ 0 , rank_ ) derart, dass:
  • stride ( p [ 0 ] ) ist gleich 1 und
  • stride ( p [ i ] ) ist gleich stride ( p [ i - 1 ] ) * extents ( ) . extent ( p [ i - 1 ] )
für alle i in [ 1 , rank_ ) , wobei p [ i ] das i te Element von p ist.

( rank_ ist eine nur zur Darstellung dienende statische Memberkonstante, definiert in std :: layout_stride :: mapping .)

Siehe LayoutMapping für die Semantik dieser Prädikat-Mapping-Eigenschaften.

Inhaltsverzeichnis

Parameter

(keine)

Rückgabewert

1,3-4,6) true
2) true wenn die Abbildung erschöpfend ist (siehe oben)
5) false

Beispiel

Siehe auch