33 #define _BASIC_IOS_H 1
35 #pragma GCC system_header
42 _GLIBCXX_BEGIN_NAMESPACE(std)
44 template<typename _Facet>
46 __check_facet(const _Facet* __f)
61 template<
typename _CharT,
typename _Traits>
62 class basic_ios :
public ios_base
93 mutable bool _M_fill_init;
111 operator void*()
const
112 {
return this->fail() ? 0 :
const_cast<basic_ios*
>(
this); }
116 {
return this->fail(); }
128 {
return _M_streambuf_state; }
138 clear(iostate __state = goodbit);
147 setstate(iostate __state)
148 { this->clear(this->rdstate() | __state); }
154 _M_setstate(iostate __state)
158 _M_streambuf_state |= __state;
159 if (this->exceptions() & __state)
160 __throw_exception_again;
171 {
return this->rdstate() == 0; }
181 {
return (this->rdstate() & eofbit) != 0; }
192 {
return (this->rdstate() & (badbit | failbit)) != 0; }
202 {
return (this->rdstate() & badbit) != 0; }
213 {
return _M_exception; }
247 exceptions(iostate __except)
249 _M_exception = __except;
250 this->clear(_M_streambuf_state);
261 :
ios_base(), _M_tie(0), _M_fill(), _M_fill_init(false), _M_streambuf(0),
262 _M_ctype(0), _M_num_put(0), _M_num_get(0)
263 { this->init(__sb); }
312 {
return _M_streambuf; }
364 _M_fill = this->widen(
' ');
400 imbue(
const locale& __loc);
421 {
return __check_facet(_M_ctype).narrow(__c, __dfault); }
439 widen(
char __c)
const
440 {
return __check_facet(_M_ctype).widen(__c); }
452 _M_streambuf(0), _M_ctype(0), _M_num_put(0), _M_num_get(0)
465 _M_cache_locale(
const locale& __loc);
468 _GLIBCXX_END_NAMESPACE
470 #ifndef _GLIBCXX_EXPORT_TEMPLATE