命名空间
变体
操作

std::istrstream::str

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

返回指向缓冲区开头的指针,在冻结缓冲区之后。 有效调用 rdbuf()->str()

[编辑] 参数

(无)

[编辑] 返回值

指向关联的 std::strstreambuf 中缓冲区开头的指针;如果无缓冲区可用,则为 null 指针。


[编辑] 示例