Namensräume
Varianten
Aktionen

offsetof

Aus cppreference.com
< c‎ | types

Defined in header <stddef.h>
#define offsetof(type, member) /*implementation-defined*/
Die Makro offsetof expandiert zu einer Konstante vom Typ size_t, deren Wert von den Offset in Bytes vom Anfang eines Objekts der angegebenen Typs in ihren angegebenen Elements einschließlich der Polsterung gegebenenfalls .. ist
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.

[Bearbeiten] Siehe auch

unsigned Integer-Typ durch die sizeof Operator zurückgegeben
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