std::basic_string_view::copy
size_type copy( CharT* dest, size_type count, size_type pos = 0) const; | | (since C++17) |
|---|
复制子字符串[pos, pos + rcount)指向的字符串dest,在哪里rcount是较小的count和size() - pos...
参数
dest | - | pointer to the destination character string |
|---|---|---|
pos | - | position of the first character |
count | - | requested substring length |
返回值
复制的字符数。
例外
std::out_of_range如果pos > size()...
复杂性
线性在rcount...
另见
substr | returns a substring (public member function) |
|---|
© cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

