NullStream.hpp
A handy no-operation output stream.
This file is part of Empirical, https://github.com/devosoft/Empirical Copyright (C) 2018 Michigan State University MIT Software license; see doc/LICENSE.md
Note
Status: BETA
Defines
-
INCLUDE_EMP_IO_NULL_STREAM_HPP_GUARD
Variables
-
static NullStream nout
No-operation drop-in replacement for std::cout.
-
class NullBuffer : public std::streambuf
- #include <NullStream.hpp>
A no-operation buffer class.
Public Functions
-
inline int overflow(int c)
-
inline int overflow(int c)
-
class NullStream : public std::ostream
- #include <NullStream.hpp>
A no-operation output stream class.
Public Functions
-
inline NullStream()
Private Members
-
NullBuffer m_sb = {}
-
inline NullStream()