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
See Also
Reference
Other Resources
Change History
Date |
History |
Reason |
---|---|---|
March 2009 |
Corrected return value. |
Customer feedback. |