ShiftOperations

public protocol ShiftOperations

Describes a type that supports all the standard shift operators.

  • Shift the value a by b bits to the left and return the result.

    Declaration

    Swift

    static func <<(a: Self, b: Self) -> Self
  • Shift the value a by b bits to the right and return the result.

    Declaration

    Swift

    static func >>(a: Self, b: Self) -> Self
  • Shift the value a by b bits to the left and store the result in a.

    Declaration

    Swift

    static func <<=(a: inout Self, b: Self)
  • Shift the value a by b bits to the right and store the result in a.

    Declaration

    Swift

    static func >>=(a: inout Self, b: Self)