1. 1.0.2
    Type OperatorSwiftAtomicsSwift

    |(_:_:)

    Returns the result of performing a bitwise OR operation on the two given values.

    static func | (lhs: Self, rhs: Self) -> Self

    Parameters

    lhs

    An integer value.

    rhs

    Another integer value.

    Overview

    A bitwise OR operation results in a value that has each bit set to 1 where one or both of its arguments have that bit set to 1. For example:

    let x: UInt8 = 5          // 0b00000101
    let y: UInt8 = 14         // 0b00001110
    let z = x | y             // 0b00001111
    // z == 15