xref: /freebsd/contrib/llvm-project/libcxx/include/iostream (revision bdd1243df58e60e85101c09001d9812a789b6bc4)
10b57cec5SDimitry Andric// -*- C++ -*-
2349cc55cSDimitry Andric//===----------------------------------------------------------------------===//
30b57cec5SDimitry Andric//
40b57cec5SDimitry Andric// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
50b57cec5SDimitry Andric// See https://llvm.org/LICENSE.txt for license information.
60b57cec5SDimitry Andric// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
70b57cec5SDimitry Andric//
80b57cec5SDimitry Andric//===----------------------------------------------------------------------===//
90b57cec5SDimitry Andric
100b57cec5SDimitry Andric#ifndef _LIBCPP_IOSTREAM
110b57cec5SDimitry Andric#define _LIBCPP_IOSTREAM
120b57cec5SDimitry Andric
130b57cec5SDimitry Andric/*
140b57cec5SDimitry Andric    iostream synopsis
150b57cec5SDimitry Andric
160b57cec5SDimitry Andric#include <ios>
170b57cec5SDimitry Andric#include <istream>
180b57cec5SDimitry Andric#include <ostream>
19fe6060f1SDimitry Andric#include <streambuf>
200b57cec5SDimitry Andric
210b57cec5SDimitry Andricnamespace std {
220b57cec5SDimitry Andric
230b57cec5SDimitry Andricextern istream cin;
240b57cec5SDimitry Andricextern ostream cout;
250b57cec5SDimitry Andricextern ostream cerr;
260b57cec5SDimitry Andricextern ostream clog;
270b57cec5SDimitry Andricextern wistream wcin;
280b57cec5SDimitry Andricextern wostream wcout;
290b57cec5SDimitry Andricextern wostream wcerr;
300b57cec5SDimitry Andricextern wostream wclog;
310b57cec5SDimitry Andric
320b57cec5SDimitry Andric}  // std
330b57cec5SDimitry Andric
340b57cec5SDimitry Andric*/
350b57cec5SDimitry Andric
3681ad6265SDimitry Andric#include <__assert> // all public C++ headers provide the assertion handler
370b57cec5SDimitry Andric#include <__config>
3881ad6265SDimitry Andric#include <version>
3981ad6265SDimitry Andric
4081ad6265SDimitry Andric// standard-mandated includes
41*bdd1243dSDimitry Andric
42*bdd1243dSDimitry Andric// [iostream.syn]
430b57cec5SDimitry Andric#include <ios>
440b57cec5SDimitry Andric#include <istream>
450b57cec5SDimitry Andric#include <ostream>
46fe6060f1SDimitry Andric#include <streambuf>
470b57cec5SDimitry Andric
480b57cec5SDimitry Andric#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
490b57cec5SDimitry Andric#  pragma GCC system_header
500b57cec5SDimitry Andric#endif
510b57cec5SDimitry Andric
520b57cec5SDimitry Andric_LIBCPP_BEGIN_NAMESPACE_STD
530b57cec5SDimitry Andric
540b57cec5SDimitry Andricextern _LIBCPP_FUNC_VIS istream cin;
550b57cec5SDimitry Andricextern _LIBCPP_FUNC_VIS ostream cout;
560b57cec5SDimitry Andricextern _LIBCPP_FUNC_VIS ostream cerr;
570b57cec5SDimitry Andricextern _LIBCPP_FUNC_VIS ostream clog;
58349cc55cSDimitry Andric
59349cc55cSDimitry Andric#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
60349cc55cSDimitry Andricextern _LIBCPP_FUNC_VIS wistream wcin;
61349cc55cSDimitry Andricextern _LIBCPP_FUNC_VIS wostream wcout;
62349cc55cSDimitry Andricextern _LIBCPP_FUNC_VIS wostream wcerr;
630b57cec5SDimitry Andricextern _LIBCPP_FUNC_VIS wostream wclog;
64349cc55cSDimitry Andric#endif
650b57cec5SDimitry Andric
660b57cec5SDimitry Andric_LIBCPP_END_NAMESPACE_STD
670b57cec5SDimitry Andric
680b57cec5SDimitry Andric#endif // _LIBCPP_IOSTREAM
69