31 #ifndef _BASIC_IOS_TCC
32 #define _BASIC_IOS_TCC 1
34 #pragma GCC system_header
36 namespace std _GLIBCXX_VISIBILITY(default)
38 _GLIBCXX_BEGIN_NAMESPACE_VERSION
40 template<
typename _CharT,
typename _Traits>
45 _M_streambuf_state = __state;
47 _M_streambuf_state = __state | badbit;
48 if (this->exceptions() & this->rdstate())
49 __throw_ios_failure(__N(
"basic_ios::clear"));
52 template<
typename _CharT,
typename _Traits>
62 template<
typename _CharT,
typename _Traits>
74 _Words* __words = (__rhs._M_word_size <= _S_local_word_size) ?
75 _M_local_word :
new _Words[__rhs._M_word_size];
78 _Callback_list* __cb = __rhs._M_callbacks;
80 __cb->_M_add_reference();
81 _M_call_callbacks(erase_event);
82 if (_M_word != _M_local_word)
87 _M_dispose_callbacks();
91 for (
int __i = 0; __i < __rhs._M_word_size; ++__i)
92 __words[__i] = __rhs._M_word[__i];
94 _M_word_size = __rhs._M_word_size;
96 this->flags(__rhs.
flags());
97 this->width(__rhs.
width());
99 this->tie(__rhs.
tie());
100 this->fill(__rhs.
fill());
101 _M_ios_locale = __rhs.
getloc();
102 _M_cache_locale(_M_ios_locale);
104 _M_call_callbacks(copyfmt_event);
113 template<
typename _CharT,
typename _Traits>
117 locale __old(this->getloc());
119 _M_cache_locale(__loc);
120 if (this->rdbuf() != 0)
121 this->rdbuf()->pubimbue(__loc);
125 template<
typename _CharT,
typename _Traits>
133 _M_cache_locale(_M_ios_locale);
148 _M_fill_init =
false;
151 _M_exception = goodbit;
153 _M_streambuf_state = __sb ? goodbit : badbit;
156 template<
typename _CharT,
typename _Traits>
160 if (__builtin_expect(has_facet<__ctype_type>(__loc),
true))
161 _M_ctype = &use_facet<__ctype_type>(__loc);
165 if (__builtin_expect(has_facet<__num_put_type>(__loc),
true))
166 _M_num_put = &use_facet<__num_put_type>(__loc);
170 if (__builtin_expect(has_facet<__num_get_type>(__loc),
true))
171 _M_num_get = &use_facet<__num_get_type>(__loc);
178 #if _GLIBCXX_EXTERN_TEMPLATE
179 extern template class basic_ios<char>;
181 #ifdef _GLIBCXX_USE_WCHAR_T
182 extern template class basic_ios<wchar_t>;
186 _GLIBCXX_END_NAMESPACE_VERSION