Table of Contents

Method PostInc

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

PostInc<T>(ref T, out T)

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

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

Parameters

source T

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

beforeValue T

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