offsetof
De cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Déclaré dans l'en-tête <cstddef>
|
||
#define offsetof(type, member) /*implementation-defined*/ |
||
offsetof la macro s'étend à une constante de std::size_t type, la valeur de ce qui est le décalage en octets du début d'un objet du type spécifié à son élément de donnée, y compris le cas échéant rembourrage .
Original:
The macro offsetof expands to a constant of type std::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.
You can help to correct and verify the translation. Click here for instructions.
Sommaire |
[modifier] Notes
Si
type
n'est pas un type standard mise en page, le comportement est indéfini .Original:
If
type
is not a standard-layout type, the behavior is undefined.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Si
member
est un membre statique ou un membre de la fonction, le comportement est indéfini .Original:
If
member
is a static member or a function member, the behavior is undefined.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click
You can help to correct and verify the translation. Click