## basic_iostream

                             ...basic_ostream...
    basic_iostream...                           ...basic_iosios_base
                             ...basic_istream...

- Summary
- Data Type and Member Function Indexes
- Synopsis
- Description
- Interface
- Public Constructors
- Destructors
- Example
- See Also
- Standards Conformance

### Summary

Assists in formatting and interpreting sequences of characters controlled by a stream buffer.

### Data Type and Member Function Indexes
(exclusive of constructors and destructors)

None

### Synopsis

    #include <istream>
    template<class charT, class traits = char_traits<charT> >
    class basic_iostream
    : public basic_istream<charT, traits>,
    public basic_ostream<charT, traits>

### Description

The class basic_iostream inherits a number of functions from classes basic_ostream<charT, traits> and basic_istream<charT, traits>. They assist in formatting and interpreting sequences of characters controlled by a stream buffer. Two groups of functions share common properties, the formatted functions and the unformatted functions.

### Interface

    template<class charT, class traits>
    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();
    };

### Public Constructors

    explicit basic_iostream(basic_streambuf<charT, traits>
                            *sb);

Constructs an object of class `basic_iostream,` assigning initial values to the base class by calling `basic_istream<charT, traits>(sb)` and `basic_ostream<charT, traits>(sb)`.

### Destructors

    virtual ~basic_iostream();

Destroys an object of class `basic_iostream`.

### Example

See basic_istream and basic_ostream examples.

### See Also

char_traits(3C++), ios_base(3C++), basic_ios(3C++), basic_streambuf(3C++), basic_istream(3C++), basic_ostream(3C++)

Working Paper for Draft Proposed International Standard for Information Systems--Programming Language C++, Section 27.6.1.5.

### Standards Conformance

ANSI X3J16/ISO WG21 Joint C++ Committee

Copyright (c) 1998, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.
OEM Release, June 1998