Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>istream_withassign::operator=</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
istream_withassign::operator=

Usage

   #include <iostream.hpp>
   istream_withassign &operator=(istream &);
   istream_withassign &operator=(streambuf *);

Description

   An istream_withassign object can be can have either another istream  type

   object, or a streambuf pointer assigned to it. When assignment is from an
   istream, the state variables of the istream  assigned from are inherited
   unchanged. When from a streambuf, the state  of the istream_withassign is
   the default state.

Example 

   istream_withassign cin2;
   cin2 = cin;
   int i;
   cin2 >> i;      // same as input from cin

   istream_withassign cin3;
   cin3 = cin.rdbuf();
   cin3 >> i;      // same as input from cin

Return Value

   Assignment operators return a reference to the object assigned to.






Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson