다음을 통해 공유


basic_iostream 클래스

A stream class that can do both input and output.

template <class Elem, class Tr = char_traits<Elem> >
    class basic_iostream : public basic_istream<Elem, Tr>,
        public basic_ostream<Elem, Tr>
{
public:
    explicit basic_iostream(basic_streambuf<Elem, Tr> *_Strbuf);
    virtual ~basic_iostream();
};

설명

The template class describes an object that controls insertions, through its base class basic_ostream<Elem, Tr>, and extractions, through its base class basic_istream<Elem, Tr>. The two objects share a common virtual base class basic_ios<Elem, Tr>. They also manage a common stream buffer, with elements of type Elem, whose character traits are determined by the class Tr. The constructor initializes its base classes through basic_istream(strbuf) and basic_ostream(strbuf).

생성자

basic_iostream

basic_iostream 개체를 만듭니다.

멤버 함수

스왑

Exchanges the contents of the provided basic_iostream object for the contents of this object.

연산자

operator=

Assigns the value of a specified basic_iostream object to this object. This is a move assignment involving an rvalue that does not leave a copy behind.

요구 사항

Header: <istream>

네임스페이스: std

참고 항목

참조

C++ 표준 라이브러리의 스레드 보안

iostream 프로그래밍

iostreams 규칙

기타 리소스

<istream> 멤버