다음을 통해 공유


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

참고 항목

참조

basic_ios 클래스

iostream 프로그래밍

iostreams 규칙