IntegralArithmetic
public protocol IntegralArithmetic : AbsoluteValuable /* requires negatability */, Negatable, SignedNumber, WholeArithmetic
A type that can be used for integral arithmetic.
Conformance Requirements:
WholeArithmeticNegatableinit(_ int: IntMax)
-
init(_:)Default implementationCreates an instance equal to
int.- Properties:
- int: An instance of
IntMax.
- int: An instance of
Default Implementation
Creates an instance equal to
int.- Properties:
- int: An instance of a type conforming to
IntType.
- int: An instance of a type conforming to
Declaration
Swift
init(_ int: IntMax) - Properties:
View on GitHub
IntegralArithmetic Protocol Reference