Table of Contents

Method PreDec

Namespace
Zyl.VectorTraits.Impl.Util
Assembly
VectorTraits.dll

PreDec<T>(ref T, out T)

Pre-decrement to the given managed pointer. It also returns the value pointed to after the decrement (向给定的托管指针前置递减. 还会返回递减之后所指向的值). Mnemonic: afterValue = --p.

public static ref T PreDec<T>(ref T source, out T afterValue)

Parameters

source T

The managed pointer to Pre-decrement to (要向其递减的托管指针).

afterValue T

Returns the value pointed to after the decrement (返回递减后所指向的值).

Returns

T

A new managed pointer that reflects the decrement to the source pointer (一个新的托管指针,是源指针递减的结果).

Type Parameters

T

The elemental type of the managed pointer (托管指针的元素类型).

See Also
Subtract<T>(ref T, int)