编译器仍然必须为空类分配空间,对吧?
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中使用的空类占用了更多内存。
为可空类型提供类库支持,包括转换运算符和算术运算符。
Library Support for nullable types, including conversion operators and arithmetic operators.
技巧在于:不包含空类作为成员,Boost中的pair结构是从这个空类中派生出来的。
Here's the trick: Instead of containing the empty class as a member, the pair structure in Boost derives from the empty class.
请注意,当第一个元素为空类时,compressed_pair_imp返回 *this。
Note that when the first element is an empty class, compressed_pair_imp returns *this.
我现在能向这新的空类填充属性,诸如字符串和数字类型(代表了角色的成分),以及这个类中常用的函数。
I can now fill the new empty class with attributes such as string and number types (representing the elements of the character), as well as functions common to this class.
清单9基于编译器会优化空基类的假设。
Listing 9 is based on the assumption that the compiler optimizes away the empty base classes.
清单5给出的代码在优化了空基类的编译器上证明了这一点。
Listing 5 shows the code that proves the point on compilers optimizing empty base classes.
您如何知道一个类是否是空的?
然而,我发觉首先创建带有一些空方法的类文件,然后生成测试文件是很容易的。
However, I find it easier to create the class file first, with some empty methods, and then create the test file.
例如,表示非空容器的任何类在构造函数中必然使用表示其元素的参数。
For instance, any class representing a non-empty container would naturally take arguments representing its elements in the constructor.
毕竟,我们不必仅仅为了空链表而去定义一个额外的类。
After all, we've saved the effort of having to define an extra class just for empty lists.
空的finalizer(它抵消超类finalizer的作用)。
An empty finalizer (which negates the effect of the superclass finalizer).
用一个工厂类来创建一个空的OMElement对象。
一种快速但不正确的解决这个问题的方法是除去Leaf类并通过简单地将空指针放在Branch的left和right字段中来表示leaf节点。
The quick but incorrect way to remedy the problem would be to eliminate the Leaf class and represent Leaf nodes simply by putting null Pointers in the left and right fields of a Branch.
空语类理论在管辖与约束理论中占有十分重要的位置。
The theory of Empty Category is one of the most important parts in Government-and Binding Theory.
英、汉语空语类在指称特征上存在着共性,但也呈现出不同的个性特征。
There exists a kind of similarity as well as differences between the referential features of empty categories in English and Chinese.
他今年的策略是作空金融类股,这种做法具有很大的下行风险。
His strategy this year has involved shorting financial shares, an approach with greater downside risk.
罗奇说,我不会持有资源类股,我会做空实物铜。
'I would not own resource companies, and I would short physical copper,' Roche said.
其他的特性还包括类不变量、非空引用类型和加强的静态分析功能。
Other features include class invariants, non-nullable reference types, and enhanced static analysis capabilities.
此包装类会在超出范围或设置为空时丢弃其到数据对象的连接。
This wrapper class drops its connection to the DataObject when it goes out of scope, or gets nulled.
adapter类,这个类提供了一些空的方法实现,并且可以减少您需要编写的代码数量。
Adapter class that provide empty implementations of the methods and can reduce the amount of code you need to write.
优点包括数据表比较紧凑(没有不需要的可空字段),数据跨三个子类的表进行分区,容易使用超类的表与其他表进行关联。
The pros include compact tables (no unnecessary nullable columns), data partitions across three subclass tables and easy association with other tables using the top super class table.
图10:空图中现在填充了从projectexplorer中拖拽过来的cheesegrater类。
Figure 10: Empty diagram now populated with CheeseGrater class, dragged and dropped from the project explorer.
类的新实例,该实例为空且具有指定的初始容量,并为键类型使用默认的相等比较器。
Class that is empty, has the specified initial capacity, and USES the default equality comparer for the key type.
在介绍空时码的MIMO信息论基础上,系统地对三类空时码进行了分析比较。
In this paper, after introducing MIMO information theory about sp ace time code, three kinds of space time code are compared and analyzed systematically.
此外,还把模糊相似方法和模糊聚类方法应用于识别地震空区及检验地震活动随时间变化的相似性。
The fuzzy similarity method and fuzzy clustering method have been used to identify the seismic gaps and examine the similarity in temporal variation of seismic activity.
目前研究传输红外激光光纤一般分为两类:红外实芯光纤和红外空芯波导。
Generally speaking, there are two types of optical fibers for Mid-infrared laser transmission. One is solid-core optical fiber and the other is hollow waveguide.
目前研究传输红外激光光纤一般分为两类:红外实芯光纤和红外空芯波导。
Generally speaking, there are two types of optical fibers for Mid-infrared laser transmission. One is solid-core optical fiber and the other is hollow waveguide.
应用推荐