void init(basic_streambuf<E, T>* sb);The member function stores values in all member objects, so that:
rdbuf() returns sbtie() returns a null pointerrdstate() returns goodbit if sb is nonzero; otherwise, it returns badbitexceptions() returns goodbitflags() returns skipws | decwidth() returns zeroprecision() returns 6fill() returns the space charactergetloc() returns locale::classic()iword returns zero and pword returns a null pointer for all argument values