basic_ios::operator!
Indicates if the stream is not bad.
bool operator!( ) const;
Return Value
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