编译器仍然必须为空类分配空间,对吧?
The compiler still has to allocate space for the empty class, right?
它返回一个新的空类,我能向此空类添加属性。
This returns a new empty class to which I can add attributes.
清单3.pair中使用的空类占用了更多内存。
请注意,当第一个元素为空类时,compressed_pair_imp返回 *this。
Note that when the first element is an empty class, compressed_pair_imp returns *this.
您如何知道一个类是否是空的?
用一个工厂类来创建一个空的OMElement对象。
用一个工厂类来创建一个空的OMElement对象。
应用推荐