namespace std {
  class ostrstream : public basic_ostream<char> {
  public:
    ostrstream();
    ostrstream(char* s, int n, ios_base::openmode mode = ios_base::out);
    virtual ~ostrstream();
    strstreambuf* rdbuf() const;
    void freeze(bool freezefl = true);
    char* str();
    int pcount() const;
  private:
    strstreambuf sb;            
  };
}
The class
ostrstream
supports the writing of objects of class
strstreambuf.  It supplies a
strstreambuf
object to control the associated array object
.  For the sake of exposition, the maintained data is presented here as:
- sb, the strstreambuf object.