std::ostrstream::rdbuf
提供: cppreference.com
< cpp | io | ostrstream
strstreambuf* rdbuf() const; |
||
紐付けられている std::strstreambuf へのポインタを返します。 メンバ関数の const 修飾子にもかかわらず、その const 性をキャストして取り去ります。
[編集] 引数
(なし)
[編集] 戻り値
const 性をキャストして取り去った、紐付けられている std::strsteambuf へのポインタ。
[編集] 例
Run this code
#include <strstream> int main() { const std::ostrstream buf; std::strstreambuf* ptr = buf.rdbuf(); }