The memory size of a C++ object instance.

来源:互联网 发布:张作霖历史评价 知乎 编辑:程序博客网 时间:2024/05/17 04:53
  1.  The accumulated size of its nonstatic data members. The static data memvers, like the member functions, are stored in global space.
  2. Plus any padding due to memory alignment constraints or simple efficiency. The padding exists between the members or the aggreate boundary itself.
  3. Plus any internally generated overhead to support the virtuals.
原创粉丝点击