basic_ios::operator void *
Indicates if the stream is still good.
operator void *( ) const;
반환 값
The operator returns a null pointer only if fail.
예제
// basic_ios_opgood.cpp
// compile with: /EHsc
#include <iostream>
int main( )
{
using namespace std;
cout << (bool)(&cout != 0) << endl; // Stream is still good
}
1
요구 사항
Header: <ios>
네임스페이스: std