Go to the source code of this file.
|
| template<class _CharT , class _Traits , size_t _Nb> |
| _STLP_MOVE_TO_STD_NAMESPACE _STLP_END_NAMESPACE _STLP_BEGIN_NAMESPACE basic_istream< _CharT, _Traits > &_STLP_CALL | operator>> (basic_istream< _CharT, _Traits > &__is, bitset< _Nb > &__x) |
| |
| template<class _CharT , class _Traits , size_t _Nb> |
| basic_ostream< _CharT, _Traits > &_STLP_CALL | operator<< (basic_ostream< _CharT, _Traits > &__os, const bitset< _Nb > &__x) |
| |
◆ __BITS_PER_WORD
◆ _STLP_BITSET_C
◆ operator<<()
Definition at line 218 of file _bitset.c.
220 {
223 return __os << __tmp;
224}
void _M_copy_to_string(string &__s) const
◆ operator>>()
Definition at line 179 of file _bitset.c.
179 {
182
183
185 if (__sentry) {
188 static typename _Traits::int_type __eof = _Traits::eof();
189
190 typename _Traits::int_type __c1 = __buf->
sbumpc();
191 if (_Traits::eq_int_type(__c1, __eof)) {
193 break;
194 }
195 else {
196 typename _Traits::char_type __c2 = _Traits::to_char_type(__c1);
198
199 if (
__c ==
'0' ||
__c ==
'1')
201 else if (_Traits::eq_int_type(__buf->
sputbackc(__c2), __eof)) {
203 break;
204 }
205 }
206 }
207
210 else
212 }
213
214 return __is;
215}
basic_streambuf< _CharT, _Traits > * rdbuf() const
void setstate(iostate __state)
char narrow(_CharT, char) const
int_type sputbackc(char_type __c)
void reserve(size_type=0)
void push_back(_CharT __c)
void _M_copy_from_string(const string &__s, size_t __pos, size_t __n)
#define __STATIC_CAST(__x, __y)