ios_base でも

bool operator!() const{
  // test if no stream operation has failed
  return (fail());
}

ってやってるし、「ダメ」なときに真を返せばいいのかなぁ。