none
语法:
1 |
bool none(); |
1 2 3 4 5 6 |
/** ? *? @brief Tests whether any of the bits are on. ? *? @return? True if none of the bits are set. */ bool none() const { return !this->_M_is_any(); } |
none()返回真如果没有位被设为1,否则返回假。
测试代码:
测试结果:
00000000?? 二进制没有1:
请按任意键继续. . .
《Bitset类none函数运用》上有1条评论
评论已关闭。