iostream 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 <__assert> // all public C++ headers provide the assertion handler
  29. #include <__config>
  30. #include <version>
  31. // standard-mandated includes
  32. // [iostream.syn]
  33. #include <ios>
  34. #include <istream>
  35. #include <ostream>
  36. #include <streambuf>
  37. #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
  38. # pragma GCC system_header
  39. #endif
  40. _LIBCPP_BEGIN_NAMESPACE_STD
  41. extern _LIBCPP_EXPORTED_FROM_ABI istream cin;
  42. extern _LIBCPP_EXPORTED_FROM_ABI ostream cout;
  43. extern _LIBCPP_EXPORTED_FROM_ABI ostream cerr;
  44. extern _LIBCPP_EXPORTED_FROM_ABI ostream clog;
  45. #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
  46. extern _LIBCPP_EXPORTED_FROM_ABI wistream wcin;
  47. extern _LIBCPP_EXPORTED_FROM_ABI wostream wcout;
  48. extern _LIBCPP_EXPORTED_FROM_ABI wostream wcerr;
  49. extern _LIBCPP_EXPORTED_FROM_ABI wostream wclog;
  50. #endif
  51. _LIBCPP_END_NAMESPACE_STD
  52. #endif // _LIBCPP_IOSTREAM