Table of Contents

Method PreInc

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

PreInc<T>(ref T, out T)

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

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

Parameters

source T

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

afterValue T

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

Returns

T

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

Type Parameters

T

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

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