iostream 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. #ifndef _LIBCPP_IOSTREAM
  10. #define _LIBCPP_IOSTREAM
  11. /*
  12. iostream synopsis
  13. #include <ios>
  14. #include <streambuf>
  15. #include <istream>
  16. #include <ostream>
  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 <ios>
  30. #include <streambuf>
  31. #include <istream>
  32. #include <ostream>
  33. #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
  34. #pragma GCC system_header
  35. #endif
  36. _LIBCPP_BEGIN_NAMESPACE_STD
  37. #ifndef _LIBCPP_HAS_NO_STDIN
  38. extern _LIBCPP_FUNC_VIS istream cin;
  39. extern _LIBCPP_FUNC_VIS wistream wcin;
  40. #endif
  41. #ifndef _LIBCPP_HAS_NO_STDOUT
  42. extern _LIBCPP_FUNC_VIS ostream cout;
  43. extern _LIBCPP_FUNC_VIS wostream wcout;
  44. #endif
  45. extern _LIBCPP_FUNC_VIS ostream cerr;
  46. extern _LIBCPP_FUNC_VIS wostream wcerr;
  47. extern _LIBCPP_FUNC_VIS ostream clog;
  48. extern _LIBCPP_FUNC_VIS wostream wclog;
  49. _LIBCPP_END_NAMESPACE_STD
  50. #endif // _LIBCPP_IOSTREAM