The VS documentation states
Half the size of a pointer. Use within a structure that contains a pointer and two small fields.
What, exactly, is this type and how is it used, if ever?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This means that in the following structure, no padding is required:
Of course, this is only relevant if the size of
HALF_PTR(32 bits on a 64-bit system, 16 bits on a 32-bit system) is sufficient to hold the intended values.