any
语法:
1 |
bool any(); |
1 2 3 4 |
/**? 源代码?? *? @brief Tests whether any of the bits are on.?? *? @return? True if at least one bit is set. */ bool any() const { return this->_M_is_any(); } |
any()函数返回真如果有位被设置为1,否则返回假。
代码例子:
运行结果:
bs二进制有1
请按任意键继续. . .