std::istrstream::rdbuf
来自cppreference.com
| |
(C++98 弃用) (C++26 移除) |
|
返回指向关联 std::strstreambuf 的指针,转型掉其常性(无关乎成员函数上的 const 限定符)。
参数
(无)
返回值
指向关联 std::strstreambuf 的指针,常性被转型掉。
示例
运行此代码
#include <strstream>
int main()
{
const std::istrstream buf("example");
std::strstreambuf* ptr = buf.rdbuf();
}