[X86] Pre-commit test for D157513
[llvm-project.git] / libcxx / include / iostream
blob568ce8caed6ef15b41de1cef48f1c984ecb6f7a9
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 //===----------------------------------------------------------------------===//
10 #ifndef _LIBCPP_IOSTREAM
11 #define _LIBCPP_IOSTREAM
14     iostream synopsis
16 #include <ios>
17 #include <istream>
18 #include <ostream>
19 #include <streambuf>
21 namespace std {
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;
32 }  // std
36 #include <__assert> // all public C++ headers provide the assertion handler
37 #include <__config>
38 #include <version>
40 // standard-mandated includes
42 // [iostream.syn]
43 #include <ios>
44 #include <istream>
45 #include <ostream>
46 #include <streambuf>
48 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
49 #  pragma GCC system_header
50 #endif
52 _LIBCPP_BEGIN_NAMESPACE_STD
54 extern _LIBCPP_EXPORTED_FROM_ABI istream cin;
55 extern _LIBCPP_EXPORTED_FROM_ABI ostream cout;
56 extern _LIBCPP_EXPORTED_FROM_ABI ostream cerr;
57 extern _LIBCPP_EXPORTED_FROM_ABI ostream clog;
59 #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
60 extern _LIBCPP_EXPORTED_FROM_ABI wistream wcin;
61 extern _LIBCPP_EXPORTED_FROM_ABI wostream wcout;
62 extern _LIBCPP_EXPORTED_FROM_ABI wostream wcerr;
63 extern _LIBCPP_EXPORTED_FROM_ABI wostream wclog;
64 #endif
66 _LIBCPP_END_NAMESPACE_STD
68 #endif // _LIBCPP_IOSTREAM