1 | // -*- C++ -*- |
---|---|
2 | //===--------------------------- iostream ---------------------------------===// |
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 <streambuf> |
18 | #include <istream> |
19 | #include <ostream> |
20 | |
21 | namespace std { |
22 | |
23 | extern istream cin; |
24 | extern ostream cout; |
25 | extern ostream cerr; |
26 | extern ostream clog; |
27 | extern wistream wcin; |
28 | extern wostream wcout; |
29 | extern wostream wcerr; |
30 | extern wostream wclog; |
31 | |
32 | } // std |
33 | |
34 | */ |
35 | |
36 | #include <__config> |
37 | #include <ios> |
38 | #include <streambuf> |
39 | #include <istream> |
40 | #include <ostream> |
41 | |
42 | #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
43 | #pragma GCC system_header |
44 | #endif |
45 | |
46 | _LIBCPP_BEGIN_NAMESPACE_STD |
47 | |
48 | #ifndef _LIBCPP_HAS_NO_STDIN |
49 | extern _LIBCPP_FUNC_VIS istream cin; |
50 | extern _LIBCPP_FUNC_VIS wistream wcin; |
51 | #endif |
52 | #ifndef _LIBCPP_HAS_NO_STDOUT |
53 | extern _LIBCPP_FUNC_VIS ostream cout; |
54 | extern _LIBCPP_FUNC_VIS wostream wcout; |
55 | #endif |
56 | extern _LIBCPP_FUNC_VIS ostream cerr; |
57 | extern _LIBCPP_FUNC_VIS wostream wcerr; |
58 | extern _LIBCPP_FUNC_VIS ostream clog; |
59 | extern _LIBCPP_FUNC_VIS wostream wclog; |
60 | |
61 | _LIBCPP_END_NAMESPACE_STD |
62 | |
63 | #endif // _LIBCPP_IOSTREAM |
64 |