Name

basic_ios class template — Base class template for all I/O streams

Synopsis

template <class charT, class traits = char_traits<charT> >
class basic_ios : public ios_base
{
public:
  typedef charT char_type;
  typedef typename traits::int_type int_type;
  typedef typename traits::pos_type pos_type;
  typedef typename traits::off_type off_type;
  typedef traits traits_type;
  // Status
  operator void*(  );
  const bool operator!(  );
  const iostate rdstate(  ) const;
  void clear(iostate state = goodbit);
  void clear(io_state state);
  void setstate(iostate state);
  void setstate(io_state state);
  bool good(  ) const;
  bool eof(  ) const;
  bool fail(  ) const;
  bool bad(  ) const;
  iostate exceptions(  ) const;
  void exceptions(iostate except);
  void exceptions(io_state except);
  explicit basic_ios(basic_streambuf<charT,traits>* sb);
  virtual ~basic_ios(  );
  basic_ostream<charT,traits>* tie(  ) const;
  basic_ostream<charT,traits>* tie(basic_ostream<charT,traits>* tiestr);
  basic_streambuf<charT,traits>* rdbuf(  ) const;
  basic_streambuf<charT,traits>* rdbuf(basic_streambuf<charT,traits>* sb);
  basic_ios& copyfmt(const basic_ios& rhs);
  char_type fill(  ) const;
  char_type fill(char_type ch);
  locale imbue(const locale& loc);
  char narrow(char_type c, char deflt) const;
  char_type widen(char c) const;
protected:
  basic_ios(  );
  void init(basic_streambuf<charT,traits>* buf);
private:
  basic_ios(const basic_ios& );           // Not defined
  basic_ios& operator=(const basic_ios&); // Not defined
};

The basic_ios class template is the root of all I/O ...

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.