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