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
;
|
(库基础技术规范) | |
返回指向底层字符数组的指针。该指针满足范围 [data(), data() + size()) 有效且其中的值对应于视图中的值。(注意:与
basic_string::data()
和字符串字面量不同,
data()
可能返回指向非空终止缓冲区的指针。因此将
data()
传递给仅接受
const CharT*
并期望空终止字符串的例程通常是错误的。)
目录 |
参数
(无)
返回值
指向底层字符数组的指针。
复杂度
常量。
参见
|
访问首字符
(公开成员函数) |
|
|
访问末字符
(公开成员函数) |