Partager via


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

basic_ios Class

iostream Programming

iostreams Conventions

Other Resources

basic_ios Members