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