Partager via


basic_istream::basic_istream

Constructs an object of type basic_istream.

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

Parameters

  • _Strbuf
    An object of type basic_streambuf.

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

  • _Right
    A basic_istream object to copy.

Remarks

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 Class 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.

Example

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

Requirements

Header: <istream>

Namespace: std

See Also

Reference

basic_istream Class

Lvalues and Rvalues

iostream Programming

iostreams Conventions

Other Resources

basic_istream Members