17#ifndef LIB_NULLSTREAM_H_
18#define LIB_NULLSTREAM_H_
27template <
class cT,
class traits = std::
char_traits<cT>>
29 typename traits::int_type overflow(
typename traits::int_type c) {
30 return traits::not_eof(c);
34template <
class cT,
class traits = std::
char_traits<cT>>
35class onullstream final :
public std::basic_ostream<cT, traits> {
37 onullstream() : std::basic_ios<cT, traits>(&m_sbuf), std::basic_ostream<cT, traits>(&m_sbuf) {
50std::ostream *openFile(
const std::filesystem::path &name,
bool nullOnError);
Definition nullstream.h:28
Definition nullstream.h:35
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:24