std::experimental::basic_string_view<CharT,Traits>::copy
From cppreference.com
< cpp | experimental | basic string view
| size_type copy( CharT* dest, size_type count, |
(Library Fundamentals TS) | |
[pos, pos + rcount) の部分文字列を dest が指す文字列表にコピーします。ここで rcount は count と size() - pos のうち小さい方です。
目次 |
[編集] パラメータ
| dest | - | コピー先の文字列へのポインター |
| pos | - | 最初の文字の位置 |
| count | - | 要求された部分文字列の長さ |
[編集] 戻り値
コピーされた文字数
[編集] 例外
pos > size() の場合、std::out_of_range。
[編集] 計算量
rcount に対して線形。
[編集] 関連項目
| 部分文字列を返す (public member function) |