@@ -133,30 +133,33 @@ private:
133
133
# include < __cxx03/strstream>
134
134
#else
135
135
# include < __config>
136
- # include < __ostream/basic_ostream.h>
137
- # include < istream>
138
- # include < streambuf>
139
- # include < version>
140
136
141
- # if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
142
- # pragma GCC system_header
143
- # endif
137
+ # if _LIBCPP_HAS_LOCALIZATION
144
138
145
- # if _LIBCPP_STD_VER < 26 || defined(_LIBCPP_ENABLE_CXX26_REMOVED_STRSTREAM) || defined(_LIBCPP_BUILDING_LIBRARY)
139
+ # include < __ostream/basic_ostream.h>
140
+ # include < istream>
141
+ # include < streambuf>
142
+ # include < version>
143
+
144
+ # if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
145
+ # pragma GCC system_header
146
+ # endif
147
+
148
+ # if _LIBCPP_STD_VER < 26 || defined(_LIBCPP_ENABLE_CXX26_REMOVED_STRSTREAM) || defined(_LIBCPP_BUILDING_LIBRARY)
146
149
147
150
_LIBCPP_PUSH_MACROS
148
- # include < __undef_macros>
151
+ # include < __undef_macros>
149
152
150
153
_LIBCPP_BEGIN_NAMESPACE_STD
151
154
152
155
class _LIBCPP_DEPRECATED _LIBCPP_EXPORTED_FROM_ABI strstreambuf : public streambuf {
153
156
public:
154
- # ifndef _LIBCPP_CXX03_LANG
157
+ # ifndef _LIBCPP_CXX03_LANG
155
158
_LIBCPP_HIDE_FROM_ABI strstreambuf () : strstreambuf(0 ) {}
156
159
explicit strstreambuf (streamsize __alsize);
157
- # else
160
+ # else
158
161
explicit strstreambuf (streamsize __alsize = 0 );
159
- # endif
162
+ # endif
160
163
strstreambuf (void * (*__palloc)(size_t ), void (*__pfree)(void *));
161
164
strstreambuf (char * __gnext, streamsize __n, char * __pbeg = nullptr );
162
165
strstreambuf (const char * __gnext, streamsize __n);
@@ -166,10 +169,10 @@ public:
166
169
strstreambuf (unsigned char * __gnext, streamsize __n, unsigned char * __pbeg = nullptr );
167
170
strstreambuf (const unsigned char * __gnext, streamsize __n);
168
171
169
- # ifndef _LIBCPP_CXX03_LANG
172
+ # ifndef _LIBCPP_CXX03_LANG
170
173
_LIBCPP_HIDE_FROM_ABI strstreambuf (strstreambuf&& __rhs);
171
174
_LIBCPP_HIDE_FROM_ABI strstreambuf& operator =(strstreambuf&& __rhs);
172
- # endif // _LIBCPP_CXX03_LANG
175
+ # endif // _LIBCPP_CXX03_LANG
173
176
174
177
~strstreambuf () override ;
175
178
@@ -203,7 +206,7 @@ private:
203
206
void __init (char * __gnext, streamsize __n, char * __pbeg);
204
207
};
205
208
206
- # ifndef _LIBCPP_CXX03_LANG
209
+ # ifndef _LIBCPP_CXX03_LANG
207
210
208
211
inline _LIBCPP_HIDE_FROM_ABI strstreambuf::strstreambuf (strstreambuf&& __rhs)
209
212
: streambuf(__rhs),
@@ -232,7 +235,7 @@ inline _LIBCPP_HIDE_FROM_ABI strstreambuf& strstreambuf::operator=(strstreambuf&
232
235
return *this ;
233
236
}
234
237
235
- # endif // _LIBCPP_CXX03_LANG
238
+ # endif // _LIBCPP_CXX03_LANG
236
239
237
240
class _LIBCPP_DEPRECATED _LIBCPP_EXPORTED_FROM_ABI istrstream : public istream {
238
241
public:
@@ -241,7 +244,7 @@ public:
241
244
_LIBCPP_HIDE_FROM_ABI istrstream (const char * __s, streamsize __n) : istream(&__sb_), __sb_(__s, __n) {}
242
245
_LIBCPP_HIDE_FROM_ABI istrstream (char * __s, streamsize __n) : istream(&__sb_), __sb_(__s, __n) {}
243
246
244
- # ifndef _LIBCPP_CXX03_LANG
247
+ # ifndef _LIBCPP_CXX03_LANG
245
248
_LIBCPP_HIDE_FROM_ABI istrstream (istrstream&& __rhs) // extension
246
249
: istream(std::move(static_cast <istream&>(__rhs))), __sb_(std::move(__rhs.__sb_)) {
247
250
istream::set_rdbuf (&__sb_);
@@ -252,7 +255,7 @@ public:
252
255
istream::operator =(std::move (__rhs));
253
256
return *this ;
254
257
}
255
- # endif // _LIBCPP_CXX03_LANG
258
+ # endif // _LIBCPP_CXX03_LANG
256
259
257
260
~istrstream () override ;
258
261
@@ -274,7 +277,7 @@ public:
274
277
_LIBCPP_HIDE_FROM_ABI ostrstream (char * __s, int __n, ios_base::openmode __mode = ios_base::out)
275
278
: ostream(&__sb_), __sb_(__s, __n, __s + (__mode & ios::app ? std::strlen(__s) : 0)) {}
276
279
277
- # ifndef _LIBCPP_CXX03_LANG
280
+ # ifndef _LIBCPP_CXX03_LANG
278
281
_LIBCPP_HIDE_FROM_ABI ostrstream (ostrstream&& __rhs) // extension
279
282
: ostream(std::move(static_cast <ostream&>(__rhs))), __sb_(std::move(__rhs.__sb_)) {
280
283
ostream::set_rdbuf (&__sb_);
@@ -285,7 +288,7 @@ public:
285
288
ostream::operator =(std::move (__rhs));
286
289
return *this ;
287
290
}
288
- # endif // _LIBCPP_CXX03_LANG
291
+ # endif // _LIBCPP_CXX03_LANG
289
292
290
293
~ostrstream () override ;
291
294
@@ -316,7 +319,7 @@ public:
316
319
_LIBCPP_HIDE_FROM_ABI strstream (char * __s, int __n, ios_base::openmode __mode = ios_base::in | ios_base::out)
317
320
: iostream(&__sb_), __sb_(__s, __n, __s + (__mode & ios::app ? std::strlen(__s) : 0)) {}
318
321
319
- # ifndef _LIBCPP_CXX03_LANG
322
+ # ifndef _LIBCPP_CXX03_LANG
320
323
_LIBCPP_HIDE_FROM_ABI strstream (strstream&& __rhs) // extension
321
324
: iostream(std::move(static_cast <iostream&>(__rhs))), __sb_(std::move(__rhs.__sb_)) {
322
325
iostream::set_rdbuf (&__sb_);
@@ -327,7 +330,7 @@ public:
327
330
iostream::operator =(std::move (__rhs));
328
331
return *this ;
329
332
}
330
- # endif // _LIBCPP_CXX03_LANG
333
+ # endif // _LIBCPP_CXX03_LANG
331
334
332
335
~strstream () override ;
333
336
@@ -350,7 +353,11 @@ _LIBCPP_END_NAMESPACE_STD
350
353
351
354
_LIBCPP_POP_MACROS
352
355
353
- # endif // _LIBCPP_STD_VER < 26 || defined(_LIBCPP_ENABLE_CXX26_REMOVED_STRSTREAM) || defined(_LIBCPP_BUILDING_LIBRARY)
354
- #endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
356
+ # endif // _LIBCPP_STD_VER < 26 || defined(_LIBCPP_ENABLE_CXX26_REMOVED_STRSTREAM) ||
357
+ // defined(_LIBCPP_BUILDING_LIBRARY)
358
+
359
+ # endif // _LIBCPP_HAS_LOCALIZATION
360
+
361
+ #endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
355
362
356
363
#endif // _LIBCPP_STRSTREAM
0 commit comments