11 #ifndef ROL_STREAM_HPP
12 #define ROL_STREAM_HPP
16 #include "ROL_Ptr.hpp"
30 template<
typename _CharT,
typename _Traits>
39 Ptr<std::ostream>
makeStreamPtr( std::ostream& os,
bool noSuppressOutput=
true ) {
40 Ptr<std::ostream> retstream;
41 if( noSuppressOutput ) retstream = makePtrFromRef<std::ostream>(os);
42 else retstream = makePtr<nullstream>();
47 Ptr<std::ostream>
makeStreamPtr( Ptr<std::ostream> os,
bool noSuppressOutput=
true ) {
48 Ptr<std::ostream> retstream;
49 if( noSuppressOutput ) retstream = os;
50 else retstream = makePtr<nullstream>();
Ptr< std::ostream > makeStreamPtr(std::ostream &os, bool noSuppressOutput=true)
basic_nullstream< char, std::char_traits< char >> nullstream