initialization (1) | explicit istream (streambuf* sb); |
---|
initialization (1) | explicit istream (streambuf* sb); |
---|---|
copy (2) | istream& (const istream&) = delete; |
move (3) | protected: istream& (istream&& x); |
|
|
test.txt
. The buffer is passed as parameter to the constructor of the istream object is, associating it to the stream. Then, the program uses the input stream to print its contents to cout.