IntegralArithmetic

public protocol IntegralArithmetic : AbsoluteValuable /* requires negatability */, Negatable, SignedNumber, WholeArithmetic

A type that can be used for integral arithmetic.

Conformance Requirements:

  • WholeArithmetic
  • Negatable
  • init(_ int: IntMax)
  • init(_:) Default implementation

    Creates an instance equal to int.

    • Properties:
      • int: An instance of IntMax.

    Default Implementation

    Creates an instance equal to int.

    • Properties:
      • int: An instance of a type conforming to IntType.

    Declaration

    Swift

    init(_ int: IntMax)