tmp/tmpnb7stahi/{from.md → to.md}
RENAMED
|
@@ -1,13 +1,15 @@
|
|
| 1 |
##### `basic_string::substr` <a id="string.substr">[[string.substr]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
constexpr basic_string substr(size_type pos = 0, size_type n = npos) const;
|
| 5 |
```
|
| 6 |
|
| 7 |
-
*
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
|
|
|
| 11 |
|
| 12 |
-
*
|
|
|
|
| 13 |
|
|
|
|
| 1 |
##### `basic_string::substr` <a id="string.substr">[[string.substr]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
constexpr basic_string substr(size_type pos = 0, size_type n = npos) const &;
|
| 5 |
```
|
| 6 |
|
| 7 |
+
*Effects:* Equivalent to: `return basic_string(*this, pos, n);`
|
| 8 |
|
| 9 |
+
``` cpp
|
| 10 |
+
constexpr basic_string substr(size_type pos = 0, size_type n = npos) &&;
|
| 11 |
+
```
|
| 12 |
|
| 13 |
+
*Effects:* Equivalent to:
|
| 14 |
+
`return basic_string(std::move(*this), pos, n);`
|
| 15 |
|