Parameters
noneReturn value
Integer value with the same bits set as the bitset.If the bitset is too long to be represented as an unsigned long, an out_of_range exception is thrown.
Example
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
Output:
1111 as an integer is: 15 |
See also
| bitset::to_string | Convert to string (public member function) |
| bitset::bitset | Construct bitset (public member function) |
