iosfwd 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. // -*- C++ -*-
  2. //===--------------------------- iosfwd -----------------------------------===//
  3. //
  4. // The LLVM Compiler Infrastructure
  5. //
  6. // This file is dual licensed under the MIT and the University of Illinois Open
  7. // Source Licenses. See LICENSE.TXT for details.
  8. //
  9. //===----------------------------------------------------------------------===//
  10. #ifndef _LIBCPP_IOSFWD
  11. #define _LIBCPP_IOSFWD
  12. /*
  13. iosfwd synopsis
  14. namespace std
  15. {
  16. template<class charT> struct char_traits;
  17. template<class T> class allocator;
  18. class ios_base;
  19. template <class charT, class traits = char_traits<charT> > class basic_ios;
  20. template <class charT, class traits = char_traits<charT> > class basic_streambuf;
  21. template <class charT, class traits = char_traits<charT> > class basic_istream;
  22. template <class charT, class traits = char_traits<charT> > class basic_ostream;
  23. template <class charT, class traits = char_traits<charT> > class basic_iostream;
  24. template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
  25. class basic_stringbuf;
  26. template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
  27. class basic_istringstream;
  28. template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
  29. class basic_ostringstream;
  30. template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
  31. class basic_stringstream;
  32. template <class charT, class traits = char_traits<charT> > class basic_filebuf;
  33. template <class charT, class traits = char_traits<charT> > class basic_ifstream;
  34. template <class charT, class traits = char_traits<charT> > class basic_ofstream;
  35. template <class charT, class traits = char_traits<charT> > class basic_fstream;
  36. template <class charT, class traits = char_traits<charT> > class istreambuf_iterator;
  37. template <class charT, class traits = char_traits<charT> > class ostreambuf_iterator;
  38. typedef basic_ios<char> ios;
  39. typedef basic_ios<wchar_t> wios;
  40. typedef basic_streambuf<char> streambuf;
  41. typedef basic_istream<char> istream;
  42. typedef basic_ostream<char> ostream;
  43. typedef basic_iostream<char> iostream;
  44. typedef basic_stringbuf<char> stringbuf;
  45. typedef basic_istringstream<char> istringstream;
  46. typedef basic_ostringstream<char> ostringstream;
  47. typedef basic_stringstream<char> stringstream;
  48. typedef basic_filebuf<char> filebuf;
  49. typedef basic_ifstream<char> ifstream;
  50. typedef basic_ofstream<char> ofstream;
  51. typedef basic_fstream<char> fstream;
  52. typedef basic_streambuf<wchar_t> wstreambuf;
  53. typedef basic_istream<wchar_t> wistream;
  54. typedef basic_ostream<wchar_t> wostream;
  55. typedef basic_iostream<wchar_t> wiostream;
  56. typedef basic_stringbuf<wchar_t> wstringbuf;
  57. typedef basic_istringstream<wchar_t> wistringstream;
  58. typedef basic_ostringstream<wchar_t> wostringstream;
  59. typedef basic_stringstream<wchar_t> wstringstream;
  60. typedef basic_filebuf<wchar_t> wfilebuf;
  61. typedef basic_ifstream<wchar_t> wifstream;
  62. typedef basic_ofstream<wchar_t> wofstream;
  63. typedef basic_fstream<wchar_t> wfstream;
  64. template <class state> class fpos;
  65. typedef fpos<char_traits<char>::state_type> streampos;
  66. typedef fpos<char_traits<wchar_t>::state_type> wstreampos;
  67. } // std
  68. */
  69. #include <__config>
  70. #include <wchar.h> // for mbstate_t
  71. #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
  72. #pragma GCC system_header
  73. #endif
  74. _LIBCPP_BEGIN_NAMESPACE_STD
  75. // Not supported in SGX.
  76. #if !defined(_LIBCPP_SGX_CONFIG)
  77. class _LIBCPP_TYPE_VIS ios_base;
  78. #endif // !defined(_LIBCPP_SGX_CONFIG)
  79. template<class _CharT> struct _LIBCPP_TYPE_VIS_ONLY char_traits;
  80. template<class _Tp> class _LIBCPP_TYPE_VIS_ONLY allocator;
  81. #if !defined(_LIBCPP_SGX_CONFIG)
  82. template <class _CharT, class _Traits = char_traits<_CharT> >
  83. class _LIBCPP_TYPE_VIS_ONLY basic_ios;
  84. template <class _CharT, class _Traits = char_traits<_CharT> >
  85. class _LIBCPP_TYPE_VIS_ONLY basic_streambuf;
  86. template <class _CharT, class _Traits = char_traits<_CharT> >
  87. class _LIBCPP_TYPE_VIS_ONLY basic_istream;
  88. template <class _CharT, class _Traits = char_traits<_CharT> >
  89. class _LIBCPP_TYPE_VIS_ONLY basic_ostream;
  90. template <class _CharT, class _Traits = char_traits<_CharT> >
  91. class _LIBCPP_TYPE_VIS_ONLY basic_iostream;
  92. template <class _CharT, class _Traits = char_traits<_CharT>,
  93. class _Allocator = allocator<_CharT> >
  94. class _LIBCPP_TYPE_VIS_ONLY basic_stringbuf;
  95. template <class _CharT, class _Traits = char_traits<_CharT>,
  96. class _Allocator = allocator<_CharT> >
  97. class _LIBCPP_TYPE_VIS_ONLY basic_istringstream;
  98. template <class _CharT, class _Traits = char_traits<_CharT>,
  99. class _Allocator = allocator<_CharT> >
  100. class _LIBCPP_TYPE_VIS_ONLY basic_ostringstream;
  101. template <class _CharT, class _Traits = char_traits<_CharT>,
  102. class _Allocator = allocator<_CharT> >
  103. class _LIBCPP_TYPE_VIS_ONLY basic_stringstream;
  104. template <class _CharT, class _Traits = char_traits<_CharT> >
  105. class _LIBCPP_TYPE_VIS_ONLY basic_filebuf;
  106. template <class _CharT, class _Traits = char_traits<_CharT> >
  107. class _LIBCPP_TYPE_VIS_ONLY basic_ifstream;
  108. template <class _CharT, class _Traits = char_traits<_CharT> >
  109. class _LIBCPP_TYPE_VIS_ONLY basic_ofstream;
  110. template <class _CharT, class _Traits = char_traits<_CharT> >
  111. class _LIBCPP_TYPE_VIS_ONLY basic_fstream;
  112. template <class _CharT, class _Traits = char_traits<_CharT> >
  113. class _LIBCPP_TYPE_VIS_ONLY istreambuf_iterator;
  114. template <class _CharT, class _Traits = char_traits<_CharT> >
  115. class _LIBCPP_TYPE_VIS_ONLY ostreambuf_iterator;
  116. typedef basic_ios<char> ios;
  117. typedef basic_ios<wchar_t> wios;
  118. typedef basic_streambuf<char> streambuf;
  119. typedef basic_istream<char> istream;
  120. typedef basic_ostream<char> ostream;
  121. typedef basic_iostream<char> iostream;
  122. typedef basic_stringbuf<char> stringbuf;
  123. typedef basic_istringstream<char> istringstream;
  124. typedef basic_ostringstream<char> ostringstream;
  125. typedef basic_stringstream<char> stringstream;
  126. typedef basic_filebuf<char> filebuf;
  127. typedef basic_ifstream<char> ifstream;
  128. typedef basic_ofstream<char> ofstream;
  129. typedef basic_fstream<char> fstream;
  130. typedef basic_streambuf<wchar_t> wstreambuf;
  131. typedef basic_istream<wchar_t> wistream;
  132. typedef basic_ostream<wchar_t> wostream;
  133. typedef basic_iostream<wchar_t> wiostream;
  134. typedef basic_stringbuf<wchar_t> wstringbuf;
  135. typedef basic_istringstream<wchar_t> wistringstream;
  136. typedef basic_ostringstream<wchar_t> wostringstream;
  137. typedef basic_stringstream<wchar_t> wstringstream;
  138. typedef basic_filebuf<wchar_t> wfilebuf;
  139. typedef basic_ifstream<wchar_t> wifstream;
  140. typedef basic_ofstream<wchar_t> wofstream;
  141. typedef basic_fstream<wchar_t> wfstream;
  142. template <class _State> class _LIBCPP_TYPE_VIS_ONLY fpos;
  143. typedef fpos<mbstate_t> streampos;
  144. typedef fpos<mbstate_t> wstreampos;
  145. #ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
  146. typedef fpos<mbstate_t> u16streampos;
  147. typedef fpos<mbstate_t> u32streampos;
  148. #endif // _LIBCPP_HAS_NO_UNICODE_CHARS
  149. #if defined(_NEWLIB_VERSION)
  150. // On newlib, off_t is 'long int'
  151. typedef long int streamoff; // for char_traits in <string>
  152. #else
  153. typedef long long streamoff; // for char_traits in <string>
  154. #endif
  155. #endif // !defined(_LIBCPP_SGX_CONFIG)
  156. template <class _CharT, // for <stdexcept>
  157. class _Traits = char_traits<_CharT>,
  158. class _Allocator = allocator<_CharT> >
  159. class _LIBCPP_TYPE_VIS_ONLY basic_string;
  160. typedef basic_string<char, char_traits<char>, allocator<char> > string;
  161. typedef basic_string<wchar_t, char_traits<wchar_t>, allocator<wchar_t> > wstring;
  162. // Include other forward declarations here
  163. template <class _Tp, class _Alloc = allocator<_Tp> >
  164. class _LIBCPP_TYPE_VIS_ONLY vector;
  165. _LIBCPP_END_NAMESPACE_STD
  166. #endif // _LIBCPP_IOSFWD