다음을 통해 공유


basic_istream::basic_istream

'basic_istream' 형식의 개체를 생성합니다.

explicit basic_istream(
    basic_streambuf<Elem, Tr> *_Strbuf,
    bool _Isstd = false
);
basic_istream(basic_istream&& _Right); 

매개 변수

  • _Strbuf
    An object of type basic_streambuf.

  • _Isstd
    true if this is a standard stream; otherwise, false.

  • _Right
    복사할 basic_istream 개체입니다.

설명

The first constructor initializes the base class by calling init(_Strbuf). It also stores zero in the extraction count. For more information about this extraction count, see the Remarks section of the basic_istream 클래스 overview topic.

The second constructor initializes the base class by calling move(_Right). It also stores _Right.gcount() in the extraction count and stores zero in the extraction count for _Right.

예제

See the example for basic_ifstream::basic_ifstream to learn more about input streams.

요구 사항

Header: <istream>

네임스페이스: std

참고 항목

참조

basic_istream 클래스

Lvalue 및 Rvalue

iostream 프로그래밍

iostreams 규칙