std::istrstream::str

来自cppreference.com
< cpp‎ | io‎ | istrstream
char* str();
(C++98 弃用)
(C++26 移除)

冻结缓冲区后,返回指向其起始的指针。相当于调用 rdbuf()->str()

[编辑]参数

(无)

[编辑]返回值

指向关联 std::strstreambuf 中缓冲区起始的指针,或若无可用缓冲区则为空指针。


[编辑]示例

close