C++ bitset to_ullong() 函数

2024年8月30日 | 阅读 1 分钟

C++ bitset to_ullong() 用于将 bitset 的内容转换为无符号长长整数。它返回一个无符号长长整数,其整数值与 bitset 具有相同的设置位。

语法

参数

该函数不接受任何参数。

返回值

它返回一个整数值,该整数值与 bitset 对象具有相同的位表示。

示例 1

输出

1111 as an integer is : 15

示例 2

输出

111111 as an integer is : 63
下一主题C++ bitset