Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 961 Bytes

File metadata and controls

56 lines (42 loc) · 961 Bytes
description title ms.date api_location api_type topic_type f1_keywords helpviewer_keywords ms.assetid
Learn more about: or
or
11/04/2016
msvcrt.dll
msvcr80.dll
msvcr90.dll
msvcr100.dll
msvcr100_clr0400.dll
msvcr110.dll
msvcr110_clr0400.dll
msvcr120.dll
msvcr120_clr0400.dll
ucrtbase.dll
DLLExport
apiref
std::or
std.or
ISO646/or
or
or function
6523b3ac-0a18-44ec-9e9a-b9bab8525ead

or

An alternative to the || operator.

Syntax

#define or ||

Remarks

The macro yields the operator ||.

Example

// iso646_or.cpp
// compile with: /EHsc
#include <iostream>
#include <iso646.h>

int main( )
{
   using namespace std;
   bool a = true, b = false, result;

   boolalpha(cout);

   result= a || b;
   cout << result << endl;

   result= a or b;
   cout << result << endl;
}
true
true

Requirements

Header: <iso646.h>