Files
geant4/source/externals/g4tools/include/tools/nostream
T
2025-12-05 08:54:02 +01:00

32 lines
601 B
Plaintext

// Copyright (C) 2010, Guy Barrand. All rights reserved.
// See the file tools.license for terms.
#ifndef tools_nostream
#define tools_nostream
// dummy ostream class in case we need
// to pass a std::ostream as argument
// but having no concrete implementation
// at hand.
#include <ostream>
namespace tools {
class nostream : public std::ostream {
public:
nostream()
:std::ostream(0)
{}
virtual ~nostream(){}
private:
nostream(const nostream&)
:std::basic_ios<char, std::char_traits<char> >()
,std::ostream(0){}
nostream& operator=(const nostream&){return *this;}
};
}
#endif