std::istrstream::rdbuf
来自 cppreference.cn
< cpp | io | istrstream
strstreambuf* rdbuf() const; |
(deprecated in C++98) (removed in C++26) |
|
返回一个指向关联的 std::strstreambuf 的指针,并移除其常量性(即使成员函数有 const 限定符)。
[编辑] 参数
(无)
[编辑] 返回值
指向关联的 std::strstreambuf 的指针,常量性已被移除。
[编辑] 示例
运行此代码
#include <strstream> int main() { const std::istrstream buf("example"); std::strstreambuf* ptr = buf.rdbuf(); }