std::ostrstream::rdbuf
From cppreference.com
< cpp | io | ostrstream
| strstreambuf* rdbuf() const; |
(C++98で非推奨) (C++26で削除) |
|
関連付けられた std::strstreambuf へのポインタを返します。このポインタは、メンバ関数の const 修飾子にもかかわらず、その const 性をキャストして削除します。
[編集] パラメータ
(なし)
[編集] 戻り値
関連付けられた std::strstreambuf へのポインタ。const 性はキャストして削除されます。
[編集] 例
このコードを実行
#include <strstream> int main() { const std::ostrstream buf; std::strstreambuf* ptr = buf.rdbuf(); }