c++ - Does `alignof(N) == sizeof(N)` where N is an integral type? -


does alignof(n) == sizeof(n) n integral type?

i'm asking both c , c++, hope isn't problem.

it's machine-specific. on 32-bit machine, alignof(int64_t) 4. too, assumptions widespread won't long.


Comments