libcruft-util/stream.cpp

18 lines
331 B
C++
Raw Normal View History

2011-05-23 17:18:52 +10:00
#include "stream.hpp"
std::ostream&
nullstream::put (char c)
{ return *this; }
bool
nullstream::good (void) const
{ return !bad () && !eof () && !fail (); }
bool nullstream::bad (void) const { return false; }
bool nullstream::eof (void) const { return false; }
bool nullstream::fail (void) const { return false; }