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