tmp/tmpaabcjbj5/{from.md → to.md}
RENAMED
|
@@ -2,31 +2,45 @@
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
constexpr reference operator[](size_type idx) const;
|
| 5 |
```
|
| 6 |
|
| 7 |
-
|
| 8 |
|
| 9 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
constexpr reference front() const;
|
| 13 |
```
|
| 14 |
|
| 15 |
-
|
| 16 |
|
| 17 |
-
*
|
|
|
|
|
|
|
| 18 |
|
| 19 |
``` cpp
|
| 20 |
constexpr reference back() const;
|
| 21 |
```
|
| 22 |
|
| 23 |
-
|
| 24 |
|
| 25 |
-
*
|
|
|
|
|
|
|
| 26 |
|
| 27 |
``` cpp
|
| 28 |
constexpr pointer data() const noexcept;
|
| 29 |
```
|
| 30 |
|
| 31 |
-
*
|
| 32 |
|
|
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
constexpr reference operator[](size_type idx) const;
|
| 5 |
```
|
| 6 |
|
| 7 |
+
`idx < size()` is `true`.
|
| 8 |
|
| 9 |
+
*Returns:* `*(data() + idx)`.
|
| 10 |
+
|
| 11 |
+
*Throws:* Nothing.
|
| 12 |
+
|
| 13 |
+
``` cpp
|
| 14 |
+
constexpr reference at(size_type idx) const;
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
*Returns:* `*(data() + idx)`.
|
| 18 |
+
|
| 19 |
+
*Throws:* `out_of_range` if `idx >= size()` is `true`.
|
| 20 |
|
| 21 |
``` cpp
|
| 22 |
constexpr reference front() const;
|
| 23 |
```
|
| 24 |
|
| 25 |
+
`empty()` is `false`.
|
| 26 |
|
| 27 |
+
*Returns:* `*data()`.
|
| 28 |
+
|
| 29 |
+
*Throws:* Nothing.
|
| 30 |
|
| 31 |
``` cpp
|
| 32 |
constexpr reference back() const;
|
| 33 |
```
|
| 34 |
|
| 35 |
+
`empty()` is `false`.
|
| 36 |
|
| 37 |
+
*Returns:* `*(data() + (size() - 1))`.
|
| 38 |
+
|
| 39 |
+
*Throws:* Nothing.
|
| 40 |
|
| 41 |
``` cpp
|
| 42 |
constexpr pointer data() const noexcept;
|
| 43 |
```
|
| 44 |
|
| 45 |
+
*Returns:* *data\_*.
|
| 46 |
|