Partager via


basic_ios::operator void *

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

See Also

Reference

basic_ios Class

iostream Programming

iostreams Conventions

Other Resources

basic_ios Members