std::experimental::basic_string_view<CharT,Traits>:: substr
From cppreference.net
<
cpp
|
experimental
|
basic string view
C++
Experimental
| Technical Specification | ||||
| Filesystem library (filesystem TS) | ||||
| Library fundamentals (library fundamentals TS) | ||||
| Library fundamentals 2 (library fundamentals TS v2) | ||||
| Library fundamentals 3 (library fundamentals TS v3) | ||||
| Extensions for parallelism (parallelism TS) | ||||
| Extensions for parallelism 2 (parallelism TS v2) | ||||
| Extensions for concurrency (concurrency TS) | ||||
| Extensions for concurrency 2 (concurrency TS v2) | ||||
| Concepts (concepts TS) | ||||
| Ranges (ranges TS) | ||||
| Reflection (reflection TS) | ||||
| Mathematical special functions (special functions TR) | ||||
| Experimental Non-TS | ||||
| Pattern Matching | ||||
| Linear Algebra | ||||
| std::execution | ||||
| Contracts | ||||
| 2D Graphics |
std::experimental::basic_string_view
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
constexpr
basic_string_view
substr ( size_type pos = 0 , size_type count = npos ) const ; |
||
부분 문자열
[pos, pos + rcount)
의 뷰를 반환합니다. 여기서
rcount
는
count
와
size
(
)
-
pos
중 더 작은 값입니다.
목차 |
매개변수
| pos | - | 첫 번째 문자의 위치 |
| count | - | 요청된 길이 |
반환값
부분 문자열 뷰
[pos, pos + rcount)
.
예외
std::out_of_range 만약 pos > size ( )
복잡도
상수.
참고 항목
|
문자 복사
(public member function) |
|
|
뷰에서 문자 찾기
(public member function) |