std::istrstream:: str
From cppreference.net
<
cpp
|
io
|
istrstream
C++
Input/output library
| I/O manipulators | ||||
| Print functions (C++23) | ||||
| C-style I/O | ||||
| Buffers | ||||
|
(C++23)
|
||||
|
(
C++98/26*
)
|
||||
|
(C++20)
|
||||
| Streams | ||||
| Abstractions | ||||
| File I/O | ||||
| String I/O | ||||
| Array I/O | ||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(
C++98/26*
)
|
||||
|
(
C++98/26*
)
|
||||
|
(
C++98/26*
)
|
||||
| Synchronized Output | ||||
|
(C++20)
|
||||
| Types | ||||
| Error category interface | ||||
|
(C++11)
|
||||
|
(C++11)
|
std::istrstream
| Member functions | ||||
|
istrstream::str
|
|
char
*
str
(
)
;
|
(C++98 中已弃用)
(C++26 中移除) |
|
返回指向缓冲区起始位置的指针,并在返回前冻结该缓冲区。此操作实际上等效于调用 rdbuf ( ) - > str ( ) 。
参数
(无)
返回值
指向关联的 std:: strstreambuf 中缓冲区起始位置的指针,若无可用缓冲区则为空指针。
示例
|
本节内容不完整
原因:缺少示例 |