Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Indicates if the stream is still good.
operator void *( ) const;
Return Value
The operator returns a null pointer only if fail.
Example
// basic_ios_opgood.cpp
// compile with: /EHsc
#include <iostream>
int main( )
{
using namespace std;
cout << (bool)(&cout != 0) << endl; // Stream is still good
}
1
Requirements
Header: <ios>
Namespace: std