Files
2025-10-25 03:02:53 +03:00

29 lines
773 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[string.copy]
# 27 Strings library [[strings]](./#strings)
## 27.4 String classes [[string.classes]](string.classes#string.copy)
### 27.4.3 Class template basic_string [[basic.string]](basic.string#string.copy)
#### 27.4.3.7 Modifiers [[string.modifiers]](string.modifiers#string.copy)
#### 27.4.3.7.7 basic_string::copy [string.copy]
[🔗](#lib:copy,basic_string)
`constexpr size_type copy(charT* s, size_type n, size_type pos = 0) const;
`
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/strings.tex#L4244)
*Effects*: Equivalent to:return basic_string_view<charT, traits>(*this).copy(s, n, pos);
[*Note [1](#note-1)*:
This does not terminate s with a null object[.](#1.sentence-1)
— *end note*]