std::basic_string_view<CharT,Traits>::substr - cppreference.com
提供: cppreference.com
<tbody> </tbody>
|
|
(C++17以上) | |
部分文字列 [pos, pos + rcount) のビューを返します。 ただし rcount は count と size() - pos の小さい方です。
引数
| pos | - | 最初の文字の位置 |
| count | - | 要求される長さ |
戻り値
部分文字列 [pos, pos + rcount) のビュー。
例外
pos > size() の場合、 std::out_of_range。
計算量
一定。