mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
stream.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <streambuf>
4
5
6class NullBuffer : public std::streambuf
7{
8 public:
9 int overflow(int c) { return c; }
10};
11
12class NullStream : public std::ostream
13{
14 public:
15 NullStream() : std::ostream(&m_sb) {}
16 private:
18};
int overflow(int c)
Definition: stream.hpp:9
NullBuffer m_sb
Definition: stream.hpp:17
NullStream()
Definition: stream.hpp:15
STL namespace.