21
Strings library
[strings]
21.3
String classes
[string.classes]
21.3.2
Class template
basic_string
[basic.string]
21.3.2.6
Modifiers
[string.modifiers]
21.3.2.6.7
basic_string::copy
[string.copy]
🔗
constexpr
size_type copy
(
charT
*
s, size_type n, size_type pos
=
0
)
const
;
1
#
Effects:
Equivalent to:
return
basic_string_view
<
charT, traits
>
(
*
this
)
.
copy
(
s, n, pos
)
;
[
Note
:
This does not terminate
s
with a null object. —
end note
]