epoc32/include/stdapis/stlport/stl/_null_stream.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
permissions -rw-r--r--
Final list of Symbian^2 public API header files
williamr@2
     1
/*
williamr@2
     2
 * Copyright (c) 2000
williamr@2
     3
 * Boris Fomitchev
williamr@2
     4
 *
williamr@2
     5
 * This material is provided "as is", with absolutely no warranty expressed
williamr@2
     6
 * or implied. Any use is at your own risk.
williamr@2
     7
 *
williamr@2
     8
 * Permission to use or copy this software for any purpose is hereby granted 
williamr@2
     9
 * without fee, provided the above notices are retained on all copies.
williamr@2
    10
 * Permission to modify the code and to distribute modified code is granted,
williamr@2
    11
 * provided the above notices are retained, and a notice that the code was
williamr@2
    12
 * modified is included with the above copyright notice.
williamr@2
    13
 *
williamr@2
    14
 */
williamr@2
    15
williamr@2
    16
#ifndef _STLP_NULL_STREAM_H
williamr@2
    17
# define _STLP_NULL_STREAM_H
williamr@2
    18
williamr@2
    19
_STLP_BEGIN_NAMESPACE
williamr@2
    20
williamr@2
    21
struct __null_stream 
williamr@2
    22
{
williamr@2
    23
    void flush() { }
williamr@2
    24
};
williamr@2
    25
williamr@2
    26
template <class _Tp>
williamr@2
    27
__null_stream& operator <<(__null_stream& __x, const _Tp& ) 
williamr@2
    28
{
williamr@2
    29
    return __x;
williamr@2
    30
}
williamr@2
    31
williamr@2
    32
template <class _Tp>
williamr@2
    33
__null_stream& operator >>(const _Tp&, __null_stream& __x ) 
williamr@2
    34
{
williamr@2
    35
    return __x;
williamr@2
    36
}
williamr@2
    37
williamr@2
    38
extern __null_stream cin, cout, cerr, endl, ws, hex, dec;
williamr@2
    39
williamr@2
    40
_STLP_END_NAMESPACE
williamr@2
    41
williamr@2
    42
# endif