std::istrstream::str

来自cppreference.com
< cpp‎ | io‎ | istrstream
char* str();

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

[编辑] 参数

(无)

[编辑] 返回值

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


[编辑] 示例