std::experimental::basic_string_view<CharT,Traits>:: data
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
const_pointer data
(
)
const
noexcept
;
|
(라이브러리 fundamentals TS) | |
기본 문자 배열에 대한 포인터를 반환합니다. 이 포인터는 [data(), data() + size()) 범위가 유효하고 그 안의 값들이 뷰의 값들과 일치하도록 합니다. (참고:
basic_string::data()
와 문자열 리터럴과 달리,
data()
는 null로 종료되지 않은 버퍼에 대한 포인터를 반환할 수 있습니다. 따라서
data()
를 단순히
const CharT*
를 받고 null 종료 문자열을 기대하는 루틴에 전달하는 것은 일반적으로 실수입니다.)
목차 |
매개변수
(없음)
반환값
기본 문자 배열에 대한 포인터입니다.
복잡도
상수.
참고 항목
|
첫 번째 문자에 접근
(public member function) |
|
|
마지막 문자에 접근
(public member function) |