xref: /freebsd/contrib/llvm-project/libcxx/include/iostream (revision 38a52bd3b5cac3da6f7f6eef3dd050e6aa08ebb3)
1// -*- C++ -*-
2//===----------------------------------------------------------------------===//
3//
4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5// See https://llvm.org/LICENSE.txt for license information.
6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef _LIBCPP_IOSTREAM
11#define _LIBCPP_IOSTREAM
12
13/*
14    iostream synopsis
15
16#include <ios>
17#include <istream>
18#include <ostream>
19#include <streambuf>
20
21namespace std {
22
23extern istream cin;
24extern ostream cout;
25extern ostream cerr;
26extern ostream clog;
27extern wistream wcin;
28extern wostream wcout;
29extern wostream wcerr;
30extern wostream wclog;
31
32}  // std
33
34*/
35
36#include <__config>
37#include <ios>
38#include <istream>
39#include <ostream>
40#include <streambuf>
41#include <version>
42
43#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
44#pragma GCC system_header
45#endif
46
47_LIBCPP_BEGIN_NAMESPACE_STD
48
49extern _LIBCPP_FUNC_VIS istream cin;
50extern _LIBCPP_FUNC_VIS ostream cout;
51extern _LIBCPP_FUNC_VIS ostream cerr;
52extern _LIBCPP_FUNC_VIS ostream clog;
53
54#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
55extern _LIBCPP_FUNC_VIS wistream wcin;
56extern _LIBCPP_FUNC_VIS wostream wcout;
57extern _LIBCPP_FUNC_VIS wostream wcerr;
58extern _LIBCPP_FUNC_VIS wostream wclog;
59#endif
60
61_LIBCPP_END_NAMESPACE_STD
62
63#endif // _LIBCPP_IOSTREAM
64