GetField

Gets a pointer to the ith member of a struct/class.

  1. FieldType!(T, i)* GetField(T* t)
  2. M* GetField(T* t)
    deprecated
    M*
    GetField
    (
    size_t i
    M
    T
    )
    (
    T* t
    )

Parameters

i

index of member to get

M

type of member

T

type of compound to get member from

Params:

t T*

pointer to compound to get member from

Return Value

Type: M*

pointer to ith member

Meta