Mar 19, 2026

[C++] uintN_t guaranteed to be exactly N bits

uintN_t is guaranteed to be exactly N bits with no padding if it exists, so 

sizeof(uint8_t) != sizeof(int32_t)

is guaranteed, if they both exist.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.