21 #ifndef TORC_COMMON_NULLOUTPUTSTREAM_HPP
22 #define TORC_COMMON_NULLOUTPUTSTREAM_HPP
35 int overflow(
int c) {
return traits_type::not_eof(c); }
51 extern NullOutputStream
cnull;
56 #endif // TORC_COMMON_NULLOUTPUTSTREAM_HPP
NullOutputStream(void)
Public constructor.
Output stream that discards everything it receives.
Null stream buffer used by NullOutputStream.
NullStreamBuffer mNullStreamBuf
The null stream buffer that supports our operations.
int overflow(int c)
Responds that we never overflow our buffer, and can thus keep writing indefinitely.
NullOutputStream cnull
Global null output stream.