std::basic_string::copy
提供: cppreference.com
< cpp | string | basic string
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
size_type copy( CharT* dest, size_type count, |
||
[pos, pos+count)
が指す文字列に部分文字列dest
をコピーします。要求された部分文字列が文字列の終端を過ぎ、またはcount == nposあれば継続した場合、コピーされた部分文字列は、[pos, size())
です。結果の文字列はNULLで終わるではない.Original:
Copies a substring
[pos, pos+count)
to character string pointed to by dest
. If the requested substring lasts past the end of the string, or if count == npos, the copied substring is [pos, size())
. The resulting character string is not null-terminated.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
pos >= size()場合、std::out_of_rangeがスローされます.
Original:
If pos >= size(), std::out_of_range is thrown.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目次 |
[編集] パラメータ
dest | - | 先の文字列へのポインタ
Original: pointer to the destination character string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
pos | - | 搭載した最初の文字の位置
Original: position of the first character to include The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
count | - | 部分文字列の長さ
Original: length of the substring The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[編集] 値を返します
文字数がコピーされます
Original:
number of characters copied
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集] 例外
std::out_of_range if pos >= size().
[編集] 複雑性
count
の線形Original:
linear in
count
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集] 例
This section is incomplete Reason: no example |
[編集] 参照
部分文字列を返します Original: returns a substring The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) |