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
}
要求
标头: <ios>
命名空间: std