C++ 关键词:and

来自cppreference.com
< cpp‎ | keyword


 
 
C++ 语言
 
 

用法

示例

int main()
{
    static_assert((false and false) == false);
    static_assert((false and true)  == false);
    static_assert((true  and false) == false);
    static_assert((true  and true)  == true);
}

参阅