Return the bitwise XOR of the specified lhs and rhs arrays.

Synopsis

Declared in <bdlc_bitarray.h>

bdlc::BitArray
operatorˆ(
    BitArray const& lhs,
    BitArray const& rhs);

Description

Return the value that is the bitwise XOR of the specified lhs and rhs arrays. The length of the resulting bit array will be the maximum of that of lhs and rhs, with any unmatched high‐order bits copied unchanged. Note that this behavior is consistent with zero‐extending a copy of the shorter array.

Return Value

bitwise XOR of lhs and rhs

Parameters

Name

Description

lhs

first operand

rhs

second operand

Created with MrDocs