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>ios::operator void*</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ios::operator void*

Usage

   #include <iostream.hpp>
   int ios::operator void*() const;

Description

   Equivalent to (rdstate()? 0: this). Used for state testing as per the
   example below.

Example 

   double d;

   while (cin >> d) {
       cout << "All is well\n";
       ...;
   }

Return Value

   Returns a null (zero) pointer if any error flag is set, some other
   pointer value otherwise.





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