18 class NullBuffer:
public std::basic_streambuf<CharType,CharTraits> {
20 typedef std::basic_streambuf<CharType,CharTraits> base;
24 using typename base::char_type;
25 using typename base::int_type;
26 using typename base::traits_type;
30 virtual std::streamsize
31 xsputn(char_type
const*,std::streamsize n) {
return n; }
34 overflow(int_type c=traits_type::eof()) {
return traits_type::not_eof(c); }