/home/ntakagi/work/STLport-5.1.5/stlport/stl/_null_stream.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2000
00003  * Boris Fomitchev
00004  *
00005  * This material is provided "as is", with absolutely no warranty expressed
00006  * or implied. Any use is at your own risk.
00007  *
00008  * Permission to use or copy this software for any purpose is hereby granted
00009  * without fee, provided the above notices are retained on all copies.
00010  * Permission to modify the code and to distribute modified code is granted,
00011  * provided the above notices are retained, and a notice that the code was
00012  * modified is included with the above copyright notice.
00013  *
00014  */
00015 
00016 #ifndef _STLP_NULL_STREAM_H
00017 # define _STLP_NULL_STREAM_H
00018 
00019 _STLP_BEGIN_NAMESPACE
00020 
00021 struct __null_stream
00022 {
00023     void flush() { }
00024 };
00025 
00026 template <class _Tp>
00027 __null_stream& operator <<(__null_stream& __x, const _Tp& )
00028 {
00029     return __x;
00030 }
00031 
00032 template <class _Tp>
00033 __null_stream& operator >>(const _Tp&, __null_stream& __x )
00034 {
00035     return __x;
00036 }
00037 
00038 extern __null_stream cin, cout, cerr, endl, ws, hex, dec;
00039 
00040 _STLP_END_NAMESPACE
00041 
00042 # endif



Generated on Mon Mar 10 15:32:31 2008 by  doxygen 1.5.1