Bitwise disjunction operators

Synopses

Declared in <absl/numeric/int128.h>

Type safe OR operator for FormatConversionCharSet to allow accepting multiple conversion chars in custom format converters.

Computes the bitwise OR of two StatusToStringMode values.

Computes the bitwise OR of two chars_format values.

Returns the bitwise OR of lhs and rhs.

constexpr
int128
operator|(
    int128 lhs,
    int128 rhs);

Returns the bitwise OR of lhs and rhs.

constexpr
uint128
operator|(
    uint128 lhs,
    uint128 rhs);

Computes the union of two character sets.

constexpr
CharSet
operator|(
    CharSet const& a,
    CharSet const& b);

Return Value

  • The set union of a and b.

  • The bitwise OR of lhs and rhs.

  • The bitwise OR lhs | rhs.

  • A set with the characters present in either a or b.

Parameters

Name

Description

a

The left‐hand operand.

b

The right‐hand operand.

lhs

The left‐hand operand.

rhs

The right‐hand operand.

Created with MrDocs