From RAD Studio
Jump to: navigation, search

Go Up to Keywords, Alphabetical Listing Index


Alternative Representations of Tokens (C++), Operators (C++)



The bitor operator is an alternative representation of the | operator (bitwise OR).

bitor takes integer or enumeration operands. bitor may pass two or more arguments. These arguments must be character or numeric.

When coded as a keyword, bitor can only pass two arguments. In either case, the result type is the same as the arguments: (1) unsigned if all arguments are unsigned, or (2) an integer.

In order to use the bitor operator, you need to check the Enable new operator names option (the -VM compiler switch, available on the C++ Compiler Compatibility page of the Project > Options dialog box).