std_iostream.h revision 97403
1303231Sdim// Standard iostream objects -*- C++ -*-
2303231Sdim
3353358Sdim// Copyright (C) 1997, 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
4353358Sdim//
5353358Sdim// This file is part of the GNU ISO C++ Library.  This library is free
6303231Sdim// software; you can redistribute it and/or modify it under the
7303231Sdim// terms of the GNU General Public License as published by the
8303231Sdim// Free Software Foundation; either version 2, or (at your option)
9303231Sdim// any later version.
10303231Sdim
11303231Sdim// This library is distributed in the hope that it will be useful,
12303231Sdim// but WITHOUT ANY WARRANTY; without even the implied warranty of
13303231Sdim// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14303231Sdim// GNU General Public License for more details.
15303231Sdim
16303231Sdim// You should have received a copy of the GNU General Public License along
17353358Sdim// with this library; see the file COPYING.  If not, write to the Free
18303231Sdim// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
19303231Sdim// USA.
20303231Sdim
21303231Sdim// As a special exception, you may use this file as part of a free software
22303231Sdim// library without restriction.  Specifically, if other files instantiate
23303231Sdim// templates or use macros or inline functions from this file, or you compile
24303231Sdim// this file and link it with other files to produce an executable, this
25303231Sdim// file does not by itself cause the resulting executable to be covered by
26303231Sdim// the GNU General Public License.  This exception does not however
27303231Sdim// invalidate any other reasons why the executable file might be covered by
28303231Sdim// the GNU General Public License.
29303231Sdim
30303231Sdim//
31303231Sdim// ISO C++ 14882: 27.3  Standard iostream objects
32303231Sdim//
33303231Sdim
34303231Sdim/** @file iostream
35303231Sdim *  This is a Standard C++ Library header.  You should @c #include this header
36303231Sdim *  in your programs, rather than any of the "st[dl]_*.h" implementation files.
37303231Sdim */
38303231Sdim
39303231Sdim#ifndef _CPP_IOSTREAM
40303231Sdim#define _CPP_IOSTREAM	1
41303231Sdim
42303231Sdim#pragma GCC system_header
43303231Sdim
44303231Sdim#include <bits/c++config.h>
45#include <ostream>
46#include <istream>
47
48namespace std
49{
50  extern istream cin;
51  extern ostream cout;
52  extern ostream cerr;
53  extern ostream clog;
54#ifdef _GLIBCPP_USE_WCHAR_T
55  extern wistream wcin;
56  extern wostream wcout;
57  extern wostream wcerr;
58  extern wostream wclog;
59#endif
60
61  // For construction of filebuffers for cout, cin, cerr, clog et. al.
62  static ios_base::Init __ioinit;
63} // namespace std
64
65#endif
66