23
Strings library
[strings]
23.4
String classes
[string.classes]
23.4.3
Class template
basic_
string
[basic.string]
23.4.3.7
Modifiers
[string.modifiers]
23.4.3.7.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
1
:
This does not terminate
s
with a null object
.
—
end note
]