CARB_OFFSETOF2#

Defined in carb/Defines.h

CARB_OFFSETOF2(t, m)#

Returns the offset of a member m of a class t at compile time.

Parameters:
  • t – The type on which to compute the offset.

  • m – The member - the current location must have visibility to the call of CARB_OFFSETOF2.

Returns:

The offset of `m` in t from its containing class, in bytes, as a size_t.