Name

basic_iostream class template — Base class for input and output stream

Synopsis

template <typename charT, typename traits = char_traits<charT> >
class basic_iostream : public basic_istream<charT,traits>, 
                        public basic_ostream<charT,traits>
{
public:
  explicit basic_iostream(basic_streambuf<charT,traits>* sb);
  virtual ~basic_iostream(  );
};

The basic_iostream class template represents a stream that can perform input and output. (For details, see its base class templates, basic_istream in this section and basic_ostream in <ostream>.) Note that the two base-class templates share a common stream buffer, sb. Note also that basic_istream and basic_ostream inherit virtually from basic_ios; basic_iostream inherits a single instance of the formatting flags, iostate, and so on.

Get C++ In a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.