williamr@2: /* williamr@2: * Copyright (c) 2000 williamr@2: * Boris Fomitchev williamr@2: * williamr@2: * This material is provided "as is", with absolutely no warranty expressed williamr@2: * or implied. Any use is at your own risk. williamr@2: * williamr@2: * Permission to use or copy this software for any purpose is hereby granted williamr@2: * without fee, provided the above notices are retained on all copies. williamr@2: * Permission to modify the code and to distribute modified code is granted, williamr@2: * provided the above notices are retained, and a notice that the code was williamr@2: * modified is included with the above copyright notice. williamr@2: * williamr@2: */ williamr@2: williamr@2: #ifndef _STLP_NULL_STREAM_H williamr@2: # define _STLP_NULL_STREAM_H williamr@2: williamr@2: _STLP_BEGIN_NAMESPACE williamr@2: williamr@2: struct __null_stream williamr@2: { williamr@2: void flush() { } williamr@2: }; williamr@2: williamr@2: template williamr@2: __null_stream& operator <<(__null_stream& __x, const _Tp& ) williamr@2: { williamr@2: return __x; williamr@2: } williamr@2: williamr@2: template williamr@2: __null_stream& operator >>(const _Tp&, __null_stream& __x ) williamr@2: { williamr@2: return __x; williamr@2: } williamr@2: williamr@2: extern __null_stream cin, cout, cerr, endl, ws, hex, dec; williamr@2: williamr@2: _STLP_END_NAMESPACE williamr@2: williamr@2: # endif