iostream 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. #ifndef _LIBCPP_IOSTREAM
  10. #define _LIBCPP_IOSTREAM
  11. /*
  12. iostream synopsis
  13. #include <ios>
  14. #include <istream>
  15. #include <ostream>
  16. #include <streambuf>
  17. namespace std {
  18. extern istream cin;
  19. extern ostream cout;
  20. extern ostream cerr;
  21. extern ostream clog;
  22. extern wistream wcin;
  23. extern wostream wcout;
  24. extern wostream wcerr;
  25. extern wostream wclog;
  26. } // std
  27. */
  28. #include <__config>
  29. #include <version>
  30. // standard-mandated includes
  31. // [iostream.syn]
  32. #include <ios>
  33. #include <istream>
  34. #include <ostream>
  35. #include <streambuf>
  36. #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
  37. # pragma GCC system_header
  38. #endif
  39. _LIBCPP_BEGIN_NAMESPACE_STD
  40. extern _LIBCPP_EXPORTED_FROM_ABI istream cin;
  41. extern _LIBCPP_EXPORTED_FROM_ABI ostream cout;
  42. extern _LIBCPP_EXPORTED_FROM_ABI ostream cerr;
  43. extern _LIBCPP_EXPORTED_FROM_ABI ostream clog;
  44. #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
  45. extern _LIBCPP_EXPORTED_FROM_ABI wistream wcin;
  46. extern _LIBCPP_EXPORTED_FROM_ABI wostream wcout;
  47. extern _LIBCPP_EXPORTED_FROM_ABI wostream wcerr;
  48. extern _LIBCPP_EXPORTED_FROM_ABI wostream wclog;
  49. #endif
  50. _LIBCPP_END_NAMESPACE_STD
  51. #endif // _LIBCPP_IOSTREAM