From Jason Turner

[mdspan.layout.general]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpf3xelo9r/{from.md → to.md} +26 -0
tmp/tmpf3xelo9r/{from.md → to.md} RENAMED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##### General <a id="mdspan.layout.general">[[mdspan.layout.general]]</a>
2
+
3
+ In subclauses [[mdspan.layout.reqmts]] and
4
+ [[mdspan.layout.policy.reqmts]]:
5
+
6
+ - `M` denotes a layout mapping class.
7
+ - `m` denotes a (possibly const) value of type `M`.
8
+ - `i` and `j` are packs of (possibly const) integers that are
9
+ multidimensional indices in `m.extents()` [[mdspan.overview]].
10
+ \[*Note 1*: The type of each element of the packs can be a different
11
+ integer type. — *end note*]
12
+ - `r` is a (possibly const) rank index of `typename M::extents_type`.
13
+ - `dᵣ` is a pack of (possibly const) integers for which
14
+ `sizeof...(dᵣ) == M::extents_type::rank()` is `true`, the rᵗʰ element
15
+ is equal to 1, and all other elements are equal to 0.
16
+
17
+ In subclauses [[mdspan.layout.reqmts]] through [[mdspan.layout.stride]],
18
+ let *`is-mapping-of`* be the exposition-only variable template defined
19
+ as follows:
20
+
21
+ ``` cpp
22
+ template<class Layout, class Mapping>
23
+ constexpr bool is-mapping-of = // exposition only
24
+ is_same_v<typename Layout::template mapping<typename Mapping::extents_type>, Mapping>;
25
+ ```
26
+