Required Operatorswift 6.0.3Swift
+=(_:_:)
Adds two values and stores the result in the left-hand-side variable.
static func += (lhs: inout Self, rhs: Self)
Adds two values and stores the result in the left-hand-side variable.
static func += (lhs: inout Self, rhs: Self)
import Swift
protocol AdditiveArithmetic : Equatable
A type with values that support addition and subtraction.
static var zero: Self { get }
The zero value.
static func + (lhs: Self, rhs: Self) -> Self
Adds two values and produces their sum.
static func - (lhs: Self, rhs: Self) -> Self
Subtracts one value from another and produces their difference.
static func -= (lhs: inout Self, rhs: Self)
Subtracts the second value from the first and stores the difference in the left-hand-side variable.
override static func += (lhs: inout Self, rhs: Self)
Adds two values and stores the result in the left-hand-side variable, rounded to a representable value.
override static func += (lhs: inout Self, rhs: Self)
Adds two values and stores the result in the left-hand-side variable.
static func += (lhs: inout Self, rhs: Self)