45 #ifndef ROL_STREAM_HPP
46 #define ROL_STREAM_HPP
50 #include "ROL_Ptr.hpp"
66 template<
typename _CharT,
typename _Traits>
76 Ptr<ostream> retstream;
77 if( noSuppressOutput ) retstream = makePtrFromRef<ostream>(os);
78 else retstream = makePtr<nullstream>();
83 Ptr<ostream>
makeStreamPtr( Ptr<ostream> os,
bool noSuppressOutput=
true ) {
84 Ptr<ostream> retstream;
85 if( noSuppressOutput ) retstream = os;
86 else retstream = makePtr<nullstream>();
Ptr< ostream > makeStreamPtr(ostream &os, bool noSuppressOutput=true)
basic_nullstream< char, char_traits< char >> nullstream