class A{ }; constexpr size_t sizeOfT = sizeof(A);
鼠标移动到sizeofT上可以看到A的大小
from:
https://stackoverflow.com/questions/24775127/how-to-find-the-size-of-a-structure-during-programming-in-visual-studio