std::char_traits<char>:: copy, std::char_traits<wchar_t>:: copy, std::char_traits<char8_t>:: copy, std::char_traits<char16_t>:: copy, std::char_traits<char32_t>:: copy
|
static
char_type
*
copy ( char_type * dest, const char_type * src, std:: size_t count ) ; |
(C++20以降 constexpr) | |
src が指す文字列から dest が指す文字列へ count 文字分をコピーします。
[
dest
,
dest
+
count
)
と
[
src
,
src
+
count
)
が重なる場合、動作は未定義です。
CharTraits
の一般的な要件については、
X::copy
の文字特性に関する全般的な要件を参照してください。
目次 |
パラメータ
| dest | - | コピー先の文字列へのポインタ |
| src | - | コピー元の文字列へのポインタ |
| count | - | コピーする文字数 |
戻り値
dest
例外
例外を送出しません。
計算量
count に対して線形。
関連項目
|
[static]
|
文字を割り当てる
(公開静的メンバ関数) |