[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*]
