libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ _M_do_to_ulong()

template<typename _WordT, typename _Alloc>
unsigned long std::tr2::__dynamic_bitset_base< _WordT, _Alloc >::_M_do_to_ulong ( ) const
inherited

Definition at line 98 of file dynamic_bitset.tcc.

99 {
100 size_t __n = sizeof(unsigned long) / sizeof(block_type);
101 for (size_t __i = __n; __i < this->_M_w.size(); ++__i)
102 if (this->_M_w[__i])
103 __throw_overflow_error(__N("__dynamic_bitset_base::_M_do_to_ulong"));
104 unsigned long __res = 0UL;
105 for (size_t __i = 0; __i < __n && __i < this->_M_w.size(); ++__i)
106 __res += this->_M_w[__i] << (__i * _S_bits_per_block);
107 return __res;
108 }
#define __N(msgid)
void __throw_overflow_error(const char *)

References __N, std::__throw_overflow_error(), _M_w, and _S_bits_per_block.

Referenced by std::tr2::dynamic_bitset< _WordT, _Alloc >::to_ulong().

Here is the call graph for this function:
Here is the caller graph for this function: