Is it always the case that sizeof(T) >= alignof(T) for all types T? – stackoverflow.com

For any type T is it always the case that sizeof(T) is at least as large as alignof(T)? Intuitively it seems so, since even when you adjust the alignment of objects like: struct small { char c; ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Is it always the case that sizeof(T) >= alignof(T) for all types T? – stackoverflow.com"