From Jason Turner

[span.elem]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpbtut9l1k/{from.md → to.md} +32 -0
tmp/tmpbtut9l1k/{from.md → to.md} RENAMED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Element access <a id="span.elem">[[span.elem]]</a>
2
+
3
+ ``` cpp
4
+ constexpr reference operator[](size_type idx) const;
5
+ ```
6
+
7
+ *Preconditions:* `idx < size()` is `true`.
8
+
9
+ *Effects:* Equivalent to: `return *(data() + idx);`
10
+
11
+ ``` cpp
12
+ constexpr reference front() const;
13
+ ```
14
+
15
+ *Preconditions:* `empty()` is `false`.
16
+
17
+ *Effects:* Equivalent to: `return *data();`
18
+
19
+ ``` cpp
20
+ constexpr reference back() const;
21
+ ```
22
+
23
+ *Preconditions:* `empty()` is `false`.
24
+
25
+ *Effects:* Equivalent to: `return *(data() + (size() - 1));`
26
+
27
+ ``` cpp
28
+ constexpr pointer data() const noexcept;
29
+ ```
30
+
31
+ *Effects:* Equivalent to: `return data_;`
32
+