摘要: /** * @brief The quick-and-easy status check. * * This allows you to write constructs such as * "if (!a_stream) ..." and "while (a_stream) ..."*/operator void*() const{ return this->fail() ? 0 : const_cast<basic_ios*>(this); }如果你把一个basic_ios类的对象(cin就是)放到if语句的括号里,它就会被转换成v 阅读全文
posted @ 2012-07-24 20:15 propheteia 阅读(3567) 评论(0) 推荐(0) 编辑