From Jason Turner

[span.syn]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpyexs9opv/{from.md → to.md} +28 -0
tmp/tmpyexs9opv/{from.md → to.md} RENAMED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Header `<span>` synopsis <a id="span.syn">[[span.syn]]</a>
2
+
3
+ ``` cpp
4
+ namespace std {
5
+ // constants
6
+ inline constexpr size_t dynamic_extent = numeric_limits<size_t>::max();
7
+
8
+ // [views.span], class template span
9
+ template<class ElementType, size_t Extent = dynamic_extent>
10
+ class span;
11
+
12
+ template<class ElementType, size_t Extent>
13
+ inline constexpr bool ranges::enable_view<span<ElementType, Extent>> =
14
+ Extent == 0 || Extent == dynamic_extent;
15
+ template<class ElementType, size_t Extent>
16
+ inline constexpr bool ranges::enable_borrowed_range<span<ElementType, Extent>> = true;
17
+
18
+ // [span.objectrep], views of object representation
19
+ template<class ElementType, size_t Extent>
20
+ span<const byte, Extent == dynamic_extent ? dynamic_extent : sizeof(ElementType) * Extent>
21
+ as_bytes(span<ElementType, Extent> s) noexcept;
22
+
23
+ template<class ElementType, size_t Extent>
24
+ span<byte, Extent == dynamic_extent ? dynamic_extent : sizeof(ElementType) * Extent>
25
+ as_writable_bytes(span<ElementType, Extent> s) noexcept;
26
+ }
27
+ ```
28
+