From Jason Turner

[mdspan.layout.policy.overview]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp_ofhoxph/{from.md → to.md} +14 -2
tmp/tmp_ofhoxph/{from.md → to.md} RENAMED
@@ -12,11 +12,23 @@ namespace std {
12
  };
13
  struct layout_stride {
14
  template<class Extents>
15
  class mapping;
16
  };
 
 
 
 
 
 
 
 
 
17
  }
18
  ```
19
 
20
- Each of `layout_left`, `layout_right`, and `layout_stride` meets the
21
- layout mapping policy requirements and is a trivial type.
 
 
 
22
 
 
12
  };
13
  struct layout_stride {
14
  template<class Extents>
15
  class mapping;
16
  };
17
+
18
+ template<size_t PaddingValue>
19
+ struct layout_left_padded {
20
+ template<class Extents> class mapping;
21
+ };
22
+ template<size_t PaddingValue>
23
+ struct layout_right_padded {
24
+ template<class Extents> class mapping;
25
+ };
26
  }
27
  ```
28
 
29
+ Each of `layout_left`, `layout_right`, and `layout_stride`, as well as
30
+ each specialization of `layout_left_padded` and `layout_right_padded`,
31
+ meets the layout mapping policy requirements and is a trivially copyable
32
+ type. Furthermore, `is_trivially_default_constructible_v<T>` is `true`
33
+ for any such type `T`.
34