11 #ifndef ROL_STREAM_HPP
12 #define ROL_STREAM_HPP
16 #include "ROL_Ptr.hpp"
32 template<
typename _CharT,
typename _Traits>
42 Ptr<ostream> retstream;
43 if( noSuppressOutput ) retstream = makePtrFromRef<ostream>(os);
44 else retstream = makePtr<nullstream>();
49 Ptr<ostream>
makeStreamPtr( Ptr<ostream> os,
bool noSuppressOutput=
true ) {
50 Ptr<ostream> retstream;
51 if( noSuppressOutput ) retstream = os;
52 else retstream = makePtr<nullstream>();
Ptr< ostream > makeStreamPtr(ostream &os, bool noSuppressOutput=true)
basic_nullstream< char, char_traits< char >> nullstream