Ключевое слово C++: and
Использование
-
альтернативные операторы: в качестве альтернативы
&&
Пример
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);
}
См. также
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/keyword/and