tmp/tmp25abbxdc/{from.md → to.md}
RENAMED
|
@@ -3,11 +3,11 @@
|
|
| 3 |
``` cpp
|
| 4 |
constexpr const_reference operator[](size_type pos) const;
|
| 5 |
constexpr reference operator[](size_type pos);
|
| 6 |
```
|
| 7 |
|
| 8 |
-
|
| 9 |
|
| 10 |
*Returns:* `*(begin() + pos)` if `pos < size()`. Otherwise, returns a
|
| 11 |
reference to an object of type `charT` with value `charT()`, where
|
| 12 |
modifying the object to any value other than `charT()` leads to
|
| 13 |
undefined behavior.
|
|
@@ -28,18 +28,18 @@ constexpr reference at(size_type pos);
|
|
| 28 |
``` cpp
|
| 29 |
constexpr const charT& front() const;
|
| 30 |
constexpr charT& front();
|
| 31 |
```
|
| 32 |
|
| 33 |
-
|
| 34 |
|
| 35 |
*Effects:* Equivalent to: `return operator[](0);`
|
| 36 |
|
| 37 |
``` cpp
|
| 38 |
constexpr const charT& back() const;
|
| 39 |
constexpr charT& back();
|
| 40 |
```
|
| 41 |
|
| 42 |
-
|
| 43 |
|
| 44 |
*Effects:* Equivalent to: `return operator[](size() - 1);`
|
| 45 |
|
|
|
|
| 3 |
``` cpp
|
| 4 |
constexpr const_reference operator[](size_type pos) const;
|
| 5 |
constexpr reference operator[](size_type pos);
|
| 6 |
```
|
| 7 |
|
| 8 |
+
`pos <= size()` is `true`.
|
| 9 |
|
| 10 |
*Returns:* `*(begin() + pos)` if `pos < size()`. Otherwise, returns a
|
| 11 |
reference to an object of type `charT` with value `charT()`, where
|
| 12 |
modifying the object to any value other than `charT()` leads to
|
| 13 |
undefined behavior.
|
|
|
|
| 28 |
``` cpp
|
| 29 |
constexpr const charT& front() const;
|
| 30 |
constexpr charT& front();
|
| 31 |
```
|
| 32 |
|
| 33 |
+
`empty()` is `false`.
|
| 34 |
|
| 35 |
*Effects:* Equivalent to: `return operator[](0);`
|
| 36 |
|
| 37 |
``` cpp
|
| 38 |
constexpr const charT& back() const;
|
| 39 |
constexpr charT& back();
|
| 40 |
```
|
| 41 |
|
| 42 |
+
`empty()` is `false`.
|
| 43 |
|
| 44 |
*Effects:* Equivalent to: `return operator[](size() - 1);`
|
| 45 |
|