Mercurial > hg > CbC > CbC_llvm
comparison libcxx/include/iosfwd @ 252:1f2b6ac9f198 llvm-original
LLVM16-1
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Aug 2023 09:04:13 +0900 (2023-08-18) |
parents | c4bab56944e8 |
children |
comparison
equal
deleted
inserted
replaced
237:c80f45b162ad | 252:1f2b6ac9f198 |
---|---|
94 | 94 |
95 */ | 95 */ |
96 | 96 |
97 #include <__assert> // all public C++ headers provide the assertion handler | 97 #include <__assert> // all public C++ headers provide the assertion handler |
98 #include <__config> | 98 #include <__config> |
99 #include <__fwd/fstream.h> | |
100 #include <__fwd/ios.h> | |
101 #include <__fwd/istream.h> | |
102 #include <__fwd/ostream.h> | |
103 #include <__fwd/sstream.h> | |
104 #include <__fwd/streambuf.h> | |
99 #include <__fwd/string.h> | 105 #include <__fwd/string.h> |
100 #include <__mbstate_t.h> | 106 #include <__std_mbstate_t.h> |
101 #include <version> | 107 #include <version> |
102 | 108 |
103 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) | 109 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
104 # pragma GCC system_header | 110 # pragma GCC system_header |
105 #endif | 111 #endif |
106 | 112 |
107 _LIBCPP_BEGIN_NAMESPACE_STD | 113 _LIBCPP_BEGIN_NAMESPACE_STD |
108 | 114 |
109 class _LIBCPP_TYPE_VIS ios_base; | 115 class _LIBCPP_EXPORTED_FROM_ABI ios_base; |
110 | |
111 template <class _CharT, class _Traits = char_traits<_CharT> > | |
112 class _LIBCPP_TEMPLATE_VIS basic_ios; | |
113 | |
114 template <class _CharT, class _Traits = char_traits<_CharT> > | |
115 class _LIBCPP_TEMPLATE_VIS basic_streambuf; | |
116 template <class _CharT, class _Traits = char_traits<_CharT> > | |
117 class _LIBCPP_TEMPLATE_VIS basic_istream; | |
118 template <class _CharT, class _Traits = char_traits<_CharT> > | |
119 class _LIBCPP_TEMPLATE_VIS basic_ostream; | |
120 template <class _CharT, class _Traits = char_traits<_CharT> > | |
121 class _LIBCPP_TEMPLATE_VIS basic_iostream; | |
122 | |
123 template <class _CharT, class _Traits = char_traits<_CharT>, | |
124 class _Allocator = allocator<_CharT> > | |
125 class _LIBCPP_TEMPLATE_VIS basic_stringbuf; | |
126 template <class _CharT, class _Traits = char_traits<_CharT>, | |
127 class _Allocator = allocator<_CharT> > | |
128 class _LIBCPP_TEMPLATE_VIS basic_istringstream; | |
129 template <class _CharT, class _Traits = char_traits<_CharT>, | |
130 class _Allocator = allocator<_CharT> > | |
131 class _LIBCPP_TEMPLATE_VIS basic_ostringstream; | |
132 template <class _CharT, class _Traits = char_traits<_CharT>, | |
133 class _Allocator = allocator<_CharT> > | |
134 class _LIBCPP_TEMPLATE_VIS basic_stringstream; | |
135 | |
136 template <class _CharT, class _Traits = char_traits<_CharT> > | |
137 class _LIBCPP_TEMPLATE_VIS basic_filebuf; | |
138 template <class _CharT, class _Traits = char_traits<_CharT> > | |
139 class _LIBCPP_TEMPLATE_VIS basic_ifstream; | |
140 template <class _CharT, class _Traits = char_traits<_CharT> > | |
141 class _LIBCPP_TEMPLATE_VIS basic_ofstream; | |
142 template <class _CharT, class _Traits = char_traits<_CharT> > | |
143 class _LIBCPP_TEMPLATE_VIS basic_fstream; | |
144 | 116 |
145 template <class _CharT, class _Traits = char_traits<_CharT> > | 117 template <class _CharT, class _Traits = char_traits<_CharT> > |
146 class _LIBCPP_TEMPLATE_VIS istreambuf_iterator; | 118 class _LIBCPP_TEMPLATE_VIS istreambuf_iterator; |
147 template <class _CharT, class _Traits = char_traits<_CharT> > | 119 template <class _CharT, class _Traits = char_traits<_CharT> > |
148 class _LIBCPP_TEMPLATE_VIS ostreambuf_iterator; | 120 class _LIBCPP_TEMPLATE_VIS ostreambuf_iterator; |
149 | |
150 typedef basic_ios<char> ios; | |
151 #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS | |
152 typedef basic_ios<wchar_t> wios; | |
153 #endif | |
154 | |
155 typedef basic_streambuf<char> streambuf; | |
156 typedef basic_istream<char> istream; | |
157 typedef basic_ostream<char> ostream; | |
158 typedef basic_iostream<char> iostream; | |
159 | |
160 typedef basic_stringbuf<char> stringbuf; | |
161 typedef basic_istringstream<char> istringstream; | |
162 typedef basic_ostringstream<char> ostringstream; | |
163 typedef basic_stringstream<char> stringstream; | |
164 | |
165 typedef basic_filebuf<char> filebuf; | |
166 typedef basic_ifstream<char> ifstream; | |
167 typedef basic_ofstream<char> ofstream; | |
168 typedef basic_fstream<char> fstream; | |
169 | |
170 #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS | |
171 typedef basic_streambuf<wchar_t> wstreambuf; | |
172 typedef basic_istream<wchar_t> wistream; | |
173 typedef basic_ostream<wchar_t> wostream; | |
174 typedef basic_iostream<wchar_t> wiostream; | |
175 | |
176 typedef basic_stringbuf<wchar_t> wstringbuf; | |
177 typedef basic_istringstream<wchar_t> wistringstream; | |
178 typedef basic_ostringstream<wchar_t> wostringstream; | |
179 typedef basic_stringstream<wchar_t> wstringstream; | |
180 | |
181 typedef basic_filebuf<wchar_t> wfilebuf; | |
182 typedef basic_ifstream<wchar_t> wifstream; | |
183 typedef basic_ofstream<wchar_t> wofstream; | |
184 typedef basic_fstream<wchar_t> wfstream; | |
185 #endif | |
186 | |
187 template <class _CharT, class _Traits> | |
188 class _LIBCPP_PREFERRED_NAME(ios) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wios)) basic_ios; | |
189 | |
190 template <class _CharT, class _Traits> | |
191 class _LIBCPP_PREFERRED_NAME(streambuf) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wstreambuf)) basic_streambuf; | |
192 template <class _CharT, class _Traits> | |
193 class _LIBCPP_PREFERRED_NAME(istream) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wistream)) basic_istream; | |
194 template <class _CharT, class _Traits> | |
195 class _LIBCPP_PREFERRED_NAME(ostream) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wostream)) basic_ostream; | |
196 template <class _CharT, class _Traits> | |
197 class _LIBCPP_PREFERRED_NAME(iostream) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wiostream)) basic_iostream; | |
198 | |
199 template <class _CharT, class _Traits, class _Allocator> | |
200 class _LIBCPP_PREFERRED_NAME(stringbuf) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wstringbuf)) basic_stringbuf; | |
201 template <class _CharT, class _Traits, class _Allocator> | |
202 class _LIBCPP_PREFERRED_NAME(istringstream) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wistringstream)) basic_istringstream; | |
203 template <class _CharT, class _Traits, class _Allocator> | |
204 class _LIBCPP_PREFERRED_NAME(ostringstream) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wostringstream)) basic_ostringstream; | |
205 template <class _CharT, class _Traits, class _Allocator> | |
206 class _LIBCPP_PREFERRED_NAME(stringstream) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wstringstream)) basic_stringstream; | |
207 | |
208 template <class _CharT, class _Traits> | |
209 class _LIBCPP_PREFERRED_NAME(filebuf) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wfilebuf)) basic_filebuf; | |
210 template <class _CharT, class _Traits> | |
211 class _LIBCPP_PREFERRED_NAME(ifstream) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wifstream)) basic_ifstream; | |
212 template <class _CharT, class _Traits> | |
213 class _LIBCPP_PREFERRED_NAME(ofstream) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wofstream)) basic_ofstream; | |
214 template <class _CharT, class _Traits> | |
215 class _LIBCPP_PREFERRED_NAME(fstream) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wfstream)) basic_fstream; | |
216 | 121 |
217 template <class _State> class _LIBCPP_TEMPLATE_VIS fpos; | 122 template <class _State> class _LIBCPP_TEMPLATE_VIS fpos; |
218 typedef fpos<mbstate_t> streampos; | 123 typedef fpos<mbstate_t> streampos; |
219 typedef fpos<mbstate_t> wstreampos; | 124 typedef fpos<mbstate_t> wstreampos; |
220 #ifndef _LIBCPP_HAS_NO_CHAR8_T | 125 #ifndef _LIBCPP_HAS_NO_CHAR8_T |
221 typedef fpos<mbstate_t> u8streampos; | 126 typedef fpos<mbstate_t> u8streampos; |
222 #endif | 127 #endif |
223 typedef fpos<mbstate_t> u16streampos; | 128 typedef fpos<mbstate_t> u16streampos; |
224 typedef fpos<mbstate_t> u32streampos; | 129 typedef fpos<mbstate_t> u32streampos; |
225 | |
226 #if defined(_NEWLIB_VERSION) | |
227 // On newlib, off_t is 'long int' | |
228 typedef long int streamoff; // for char_traits in <string> | |
229 #else | |
230 typedef long long streamoff; // for char_traits in <string> | |
231 #endif | |
232 | 130 |
233 // Include other forward declarations here | 131 // Include other forward declarations here |
234 template <class _Tp, class _Alloc = allocator<_Tp> > | 132 template <class _Tp, class _Alloc = allocator<_Tp> > |
235 class _LIBCPP_TEMPLATE_VIS vector; | 133 class _LIBCPP_TEMPLATE_VIS vector; |
236 | 134 |