Table of Contents

Method PostDec

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

PostDec<T>(ref T, out T)

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

public static ref T PostDec<T>(ref T source, out T beforeValue)

Parameters

source T

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

beforeValue T

Returns the value pointed to before 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)