tmp/tmpd349ku7o/{from.md → to.md}
RENAMED
|
@@ -1,23 +0,0 @@
|
|
| 1 |
-
#### `basic_string::copy` <a id="string::copy">[[string::copy]]</a>
|
| 2 |
-
|
| 3 |
-
``` cpp
|
| 4 |
-
size_type copy(charT* s, size_type n, size_type pos = 0) const;
|
| 5 |
-
```
|
| 6 |
-
|
| 7 |
-
*Requires:* `pos <= size()`
|
| 8 |
-
|
| 9 |
-
*Throws:* `out_of_range` if `pos > size()`.
|
| 10 |
-
|
| 11 |
-
*Effects:* Determines the effective length `rlen` of the string to copy
|
| 12 |
-
as the smaller of `n` and `size() - pos`. `s` shall designate an array
|
| 13 |
-
of at least `rlen` elements.
|
| 14 |
-
|
| 15 |
-
The function then replaces the string designated by `s` with a string of
|
| 16 |
-
length `rlen` whose elements are a copy of the string controlled by
|
| 17 |
-
`*this` beginning at position `pos`.
|
| 18 |
-
|
| 19 |
-
The function does not append a null object to the string designated by
|
| 20 |
-
`s`.
|
| 21 |
-
|
| 22 |
-
*Returns:* `rlen`.
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|