1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/tools/stlport/stl/_null_stream.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,42 @@
1.4 +/*
1.5 + * Copyright (c) 2000
1.6 + * Boris Fomitchev
1.7 + *
1.8 + * This material is provided "as is", with absolutely no warranty expressed
1.9 + * or implied. Any use is at your own risk.
1.10 + *
1.11 + * Permission to use or copy this software for any purpose is hereby granted
1.12 + * without fee, provided the above notices are retained on all copies.
1.13 + * Permission to modify the code and to distribute modified code is granted,
1.14 + * provided the above notices are retained, and a notice that the code was
1.15 + * modified is included with the above copyright notice.
1.16 + *
1.17 + */
1.18 +
1.19 +#ifndef _STLP_NULL_STREAM_H
1.20 +# define _STLP_NULL_STREAM_H
1.21 +
1.22 +_STLP_BEGIN_NAMESPACE
1.23 +
1.24 +struct __null_stream
1.25 +{
1.26 + void flush() { }
1.27 +};
1.28 +
1.29 +template <class _Tp>
1.30 +__null_stream& operator <<(__null_stream& __x, const _Tp& )
1.31 +{
1.32 + return __x;
1.33 +}
1.34 +
1.35 +template <class _Tp>
1.36 +__null_stream& operator >>(const _Tp&, __null_stream& __x )
1.37 +{
1.38 + return __x;
1.39 +}
1.40 +
1.41 +extern __null_stream cin, cout, cerr, endl, ws, hex, dec;
1.42 +
1.43 +_STLP_END_NAMESPACE
1.44 +
1.45 +# endif