Usage
times!(r, p)
Signature
times!: (R, %) %
Parameter | Type | Description |
---|---|---|
r | R | A scalar to be multiplied by p |
p | % | An element of the type (to be destroyed) |
Returns
Returns the product .
Remarks
The storage used by p is allowed to be destroyed or reused, so p is lost after this call. This may cause p to be destroyed, so do not use this unless p has been locally allocated, and is thus guaranteed not to share space with other elements. Some functions are not necessarily copying their arguments and can thus create memory aliases.
See Also
,add!