std_iostream.h revision 107606
1193240Ssam// Standard iostream objects -*- C++ -*- 2193240Ssam 3193240Ssam// Copyright (C) 1997, 1998, 1999, 2001, 2002 Free Software Foundation, Inc. 4193240Ssam// 5193240Ssam// This file is part of the GNU ISO C++ Library. This library is free 6193240Ssam// software; you can redistribute it and/or modify it under the 7193240Ssam// terms of the GNU General Public License as published by the 8193240Ssam// Free Software Foundation; either version 2, or (at your option) 9193240Ssam// any later version. 10193240Ssam 11193240Ssam// This library is distributed in the hope that it will be useful, 12193240Ssam// but WITHOUT ANY WARRANTY; without even the implied warranty of 13193240Ssam// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14193240Ssam// GNU General Public License for more details. 15193240Ssam 16193240Ssam// You should have received a copy of the GNU General Public License along 17193240Ssam// with this library; see the file COPYING. If not, write to the Free 18193240Ssam// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, 19193240Ssam// USA. 20193240Ssam 21193240Ssam// As a special exception, you may use this file as part of a free software 22193240Ssam// library without restriction. Specifically, if other files instantiate 23193240Ssam// templates or use macros or inline functions from this file, or you compile 24193240Ssam// this file and link it with other files to produce an executable, this 25193240Ssam// file does not by itself cause the resulting executable to be covered by 26193240Ssam// the GNU General Public License. This exception does not however 27193240Ssam// invalidate any other reasons why the executable file might be covered by 28193240Ssam// the GNU General Public License. 29193240Ssam 30193240Ssam// 31193240Ssam// ISO C++ 14882: 27.3 Standard iostream objects 32193240Ssam// 33193240Ssam 34193240Ssam/** @file iostream 35193240Ssam * This is a Standard C++ Library header. You should @c #include this header 36193240Ssam * in your programs, rather than any of the "st[dl]_*.h" implementation files. 37193240Ssam */ 38193240Ssam 39193240Ssam#ifndef _CPP_IOSTREAM 40193240Ssam#define _CPP_IOSTREAM 1 41193240Ssam 42193240Ssam#pragma GCC system_header 43193240Ssam 44193240Ssam#include <bits/c++config.h> 45193240Ssam#include <ostream> 46193240Ssam#include <istream> 47193240Ssam 48193240Ssamnamespace std 49193240Ssam{ 50193240Ssam extern istream cin; 51193240Ssam extern ostream cout; 52193240Ssam extern ostream cerr; 53193240Ssam extern ostream clog; 54193240Ssam 55193240Ssam#ifdef _GLIBCPP_USE_WCHAR_T 56193240Ssam extern wistream wcin; 57193240Ssam extern wostream wcout; 58193240Ssam extern wostream wcerr; 59193240Ssam extern wostream wclog; 60193240Ssam#endif 61193240Ssam 62193240Ssam // For construction of filebuffers for cout, cin, cerr, clog et. al. 63193240Ssam static ios_base::Init __ioinit; 64193240Ssam} // namespace std 65193240Ssam 66193240Ssam#endif 67193240Ssam