文法:
#include <sstream> stringbuf* rdbuf();
rdbuf()関数は現在の文字列ストリームの文字列バッファへのポインタを返します。
関連トピック: str, C++ I/Oストリーム