@@ -73,7 +73,6 @@ public:
73
73
typedef typename traits_type::int_type int_type;
74
74
typedef typename traits_type::pos_type pos_type;
75
75
typedef typename traits_type::off_type off_type;
76
- using native_handle_type = typename basic_filebuf<charT, traits>::native_handle_type; // Since C++26
77
76
78
77
basic_ifstream();
79
78
explicit basic_ifstream(const char* s, ios_base::openmode mode = ios_base::in);
@@ -86,7 +85,6 @@ public:
86
85
void swap(basic_ifstream& rhs);
87
86
88
87
basic_filebuf<char_type, traits_type>* rdbuf() const;
89
- native_handle_type native_handle() const noexcept; // Since C++26
90
88
bool is_open() const;
91
89
void open(const char* s, ios_base::openmode mode = ios_base::in);
92
90
void open(const string& s, ios_base::openmode mode = ios_base::in);
@@ -112,7 +110,6 @@ public:
112
110
typedef typename traits_type::int_type int_type;
113
111
typedef typename traits_type::pos_type pos_type;
114
112
typedef typename traits_type::off_type off_type;
115
- using native_handle_type = typename basic_filebuf<charT, traits>::native_handle_type; // Since C++26
116
113
117
114
basic_ofstream();
118
115
explicit basic_ofstream(const char* s, ios_base::openmode mode = ios_base::out);
@@ -125,8 +122,6 @@ public:
125
122
void swap(basic_ofstream& rhs);
126
123
127
124
basic_filebuf<char_type, traits_type>* rdbuf() const;
128
- native_handle_type native_handle() const noexcept; // Since C++26
129
-
130
125
bool is_open() const;
131
126
void open(const char* s, ios_base::openmode mode = ios_base::out);
132
127
void open(const string& s, ios_base::openmode mode = ios_base::out);
@@ -153,7 +148,6 @@ public:
153
148
typedef typename traits_type::int_type int_type;
154
149
typedef typename traits_type::pos_type pos_type;
155
150
typedef typename traits_type::off_type off_type;
156
- using native_handle_type = typename basic_filebuf<charT, traits>::native_handle_type; // Since C++26
157
151
158
152
basic_fstream();
159
153
explicit basic_fstream(const char* s, ios_base::openmode mode = ios_base::in|ios_base::out);
@@ -166,7 +160,6 @@ public:
166
160
void swap(basic_fstream& rhs);
167
161
168
162
basic_filebuf<char_type, traits_type>* rdbuf() const;
169
- native_handle_type native_handle() const noexcept; // Since C++26
170
163
bool is_open() const;
171
164
void open(const char* s, ios_base::openmode mode = ios_base::in|ios_base::out);
172
165
void open(const string& s, ios_base::openmode mode = ios_base::in|ios_base::out);
@@ -217,10 +210,6 @@ _LIBCPP_PUSH_MACROS
217
210
218
211
_LIBCPP_BEGIN_NAMESPACE_STD
219
212
220
- # if _LIBCPP_STD_VER >= 26 && defined(_LIBCPP_WIN32API)
221
- _LIBCPP_EXPORTED_FROM_ABI void * __filebuf_windows_native_handle (FILE* __file);
222
- # endif
223
-
224
213
template <class _CharT , class _Traits >
225
214
class _LIBCPP_TEMPLATE_VIS basic_filebuf : public basic_streambuf<_CharT, _Traits> {
226
215
public:
@@ -230,15 +219,6 @@ public:
230
219
typedef typename traits_type::pos_type pos_type;
231
220
typedef typename traits_type::off_type off_type;
232
221
typedef typename traits_type::state_type state_type;
233
- # if _LIBCPP_STD_VER >= 26
234
- # if defined(_LIBCPP_WIN32API)
235
- using native_handle_type = void *; // HANDLE
236
- # elif __has_include(<unistd.h>)
237
- using native_handle_type = int ; // POSIX file descriptor
238
- # else
239
- # error "Provide a native file handle!"
240
- # endif
241
- # endif
242
222
243
223
// 27.9.1.2 Constructors/destructor:
244
224
basic_filebuf ();
@@ -265,18 +245,6 @@ public:
265
245
# endif
266
246
_LIBCPP_HIDE_FROM_ABI basic_filebuf* __open (int __fd, ios_base::openmode __mode);
267
247
basic_filebuf* close ();
268
- # if _LIBCPP_STD_VER >= 26
269
- _LIBCPP_HIDE_FROM_ABI native_handle_type native_handle () const noexcept {
270
- _LIBCPP_ASSERT_UNCATEGORIZED (this ->is_open (), " File must be opened" );
271
- # if defined(_LIBCPP_WIN32API)
272
- return std::__filebuf_windows_native_handle (__file_);
273
- # elif __has_include(<unistd.h>)
274
- return fileno (__file_);
275
- # else
276
- # error "Provide a way to determine the file native handle!"
277
- # endif
278
- }
279
- # endif // _LIBCPP_STD_VER >= 26
280
248
281
249
_LIBCPP_HIDE_FROM_ABI inline static const char * __make_mdstring (ios_base::openmode __mode) _NOEXCEPT;
282
250
@@ -1056,9 +1024,6 @@ public:
1056
1024
typedef typename traits_type::int_type int_type;
1057
1025
typedef typename traits_type::pos_type pos_type;
1058
1026
typedef typename traits_type::off_type off_type;
1059
- # if _LIBCPP_STD_VER >= 26
1060
- using native_handle_type = typename basic_filebuf<_CharT, _Traits>::native_handle_type;
1061
- # endif
1062
1027
1063
1028
_LIBCPP_HIDE_FROM_ABI basic_ifstream ();
1064
1029
_LIBCPP_HIDE_FROM_ABI explicit basic_ifstream (const char * __s, ios_base::openmode __mode = ios_base::in);
@@ -1076,9 +1041,6 @@ public:
1076
1041
_LIBCPP_HIDE_FROM_ABI void swap (basic_ifstream& __rhs);
1077
1042
1078
1043
_LIBCPP_HIDE_FROM_ABI basic_filebuf<char_type, traits_type>* rdbuf () const ;
1079
- # if _LIBCPP_STD_VER >= 26
1080
- _LIBCPP_HIDE_FROM_ABI native_handle_type native_handle () const noexcept { return rdbuf ()->native_handle (); }
1081
- # endif
1082
1044
_LIBCPP_HIDE_FROM_ABI bool is_open () const ;
1083
1045
void open (const char * __s, ios_base::openmode __mode = ios_base::in);
1084
1046
# ifdef _LIBCPP_HAS_OPEN_WITH_WCHAR
@@ -1209,9 +1171,6 @@ public:
1209
1171
typedef typename traits_type::int_type int_type;
1210
1172
typedef typename traits_type::pos_type pos_type;
1211
1173
typedef typename traits_type::off_type off_type;
1212
- # if _LIBCPP_STD_VER >= 26
1213
- using native_handle_type = typename basic_filebuf<_CharT, _Traits>::native_handle_type;
1214
- # endif
1215
1174
1216
1175
_LIBCPP_HIDE_FROM_ABI basic_ofstream ();
1217
1176
_LIBCPP_HIDE_FROM_ABI explicit basic_ofstream (const char * __s, ios_base::openmode __mode = ios_base::out);
@@ -1231,9 +1190,6 @@ public:
1231
1190
_LIBCPP_HIDE_FROM_ABI void swap (basic_ofstream& __rhs);
1232
1191
1233
1192
_LIBCPP_HIDE_FROM_ABI basic_filebuf<char_type, traits_type>* rdbuf () const ;
1234
- # if _LIBCPP_STD_VER >= 26
1235
- _LIBCPP_HIDE_FROM_ABI native_handle_type native_handle () const noexcept { return rdbuf ()->native_handle (); }
1236
- # endif
1237
1193
_LIBCPP_HIDE_FROM_ABI bool is_open () const ;
1238
1194
void open (const char * __s, ios_base::openmode __mode = ios_base::out);
1239
1195
# ifdef _LIBCPP_HAS_OPEN_WITH_WCHAR
@@ -1365,9 +1321,6 @@ public:
1365
1321
typedef typename traits_type::int_type int_type;
1366
1322
typedef typename traits_type::pos_type pos_type;
1367
1323
typedef typename traits_type::off_type off_type;
1368
- # if _LIBCPP_STD_VER >= 26
1369
- using native_handle_type = typename basic_filebuf<_CharT, _Traits>::native_handle_type;
1370
- # endif
1371
1324
1372
1325
_LIBCPP_HIDE_FROM_ABI basic_fstream ();
1373
1326
_LIBCPP_HIDE_FROM_ABI explicit basic_fstream (const char * __s,
@@ -1392,9 +1345,6 @@ public:
1392
1345
_LIBCPP_HIDE_FROM_ABI void swap (basic_fstream& __rhs);
1393
1346
1394
1347
_LIBCPP_HIDE_FROM_ABI basic_filebuf<char_type, traits_type>* rdbuf () const ;
1395
- # if _LIBCPP_STD_VER >= 26
1396
- _LIBCPP_HIDE_FROM_ABI native_handle_type native_handle () const noexcept { return rdbuf ()->native_handle (); }
1397
- # endif
1398
1348
_LIBCPP_HIDE_FROM_ABI bool is_open () const ;
1399
1349
_LIBCPP_HIDE_FROM_ABI void open (const char * __s, ios_base::openmode __mode = ios_base::in | ios_base::out);
1400
1350
# ifdef _LIBCPP_HAS_OPEN_WITH_WCHAR
0 commit comments