名前空間
変種
操作

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();
}
English 日本語 中文(简体) 中文(繁體)