basic_ios::operator!

Indicates if the stream is not bad.

bool operator!( ) const;

Return Value

If the stream is bad, returns fail.

Example

// basic_ios_opbad.cpp
// compile with: /EHsc
#include <iostream>

int main( ) 
{
   using namespace std;
   cout << !cout << endl;   // Stream is not bad 
}
0

Requirements

Header: <ios>

Namespace: std

See Also

Concepts

basic_ios Class

basic_ios Members

iostream Programming

iostreams Conventions