名前空間
変種
操作

offsetof

提供: cppreference.com
< c‎ | types

Defined in header <stddef.h>
#define offsetof(type, member) /*implementation-defined*/
マクロoffsetofsize_t型の定数に展開され、値が指定された型のオブジェクトの先頭から、もしあればパディングを含め、指定したメンバーに、バイト単位でオフセットされます.
Original:
The macro offsetof expands to a constant of type size_t, the value of which is the offset, in bytes, from the beginning of an object of specified type to its specified member, including padding if any.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] も参照してください

sizeof子によって戻された符号なし整数型
Original:
unsigned integer type returned by the sizeof operator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(typedefです) [edit]
C++ documentation for offsetof