basic_ios::operator void *
ストリームがまだよければ示します。
operator void *( ) const;
戻り値
演算子が null ポインターの場合にのみ 失敗で返します。
使用例
// basic_ios_opgood.cpp
// compile with: /EHsc
#include <iostream>
int main( )
{
using namespace std;
cout << (bool)(&cout != 0) << endl; // Stream is still good
}
1
必要条件
ヘッダー: <ios>
名前空間: std