我如何使用初始化列表的基类?
这贪婪的初始化列表的例子是在标准库?
Which greedy initializer-list examples are lurking in the Standard Library?
你应该初始化引用成员在成员初始化列表。
C + + reference cannot be assigned, therefore, it must be initialized in the initialization list.
托管类中不能有本身有成员初始化列表的静态构造函数。
A managed class cannot have a static constructor that also has a member initialization list.
构造函数的初始化列表为类的一个或多个数据成员指定初值。
A constructor initializer list specifies initial values for one or more data members of the class.
在构造函数体现执行前,用初始化列表中指定的值初始化成员。
The members are initialized to the values specified in the initializer list before the body of the constructor executes.
通过使用From关键字,初始化列表中的每个条目都会被加到新创建的对象中。
Using the From keyword, each item in the initialization list is added to newly created object.
本发明的实施例提供的方法包括:上电时将初始化列表读入缓冲内存;
The initialization method includes that: the initialization list is read and loaded into a buffer memory under electrified state;
没有在初始化列表中初始化的类成员,使用它们的默认构造函数隐式初始化。
Class members that are not initialized in the initializer list are implicitly initialized by using their default constructor.
下降推导出一个具体类型,编译器保留的更一般的初始化列表中任何可能的应用。
By declining to deduce a concrete type, the compiler preserves any possible application of the more general initializer list.
有什么方法可以利用隐式的拷贝构造函数初始化列表吗?有没有其他方式手动编写初始化列表吗?
Is there any way to make the implicit copy constructor use initialization lists? Is there any other way around manually writing the initialization list?
catch子句既可以处理从成员初始化列表中抛出的异常,也可以处理从构造函数函数体中抛出的异常。
The catch clause can handle exceptions thrown either from within the member initialization list or from within the constructor body.
这通常通过list_head宏来完成,这个宏提供列表的声明和初始化。
This is commonly done with the LIST_HEAD macro, which provides the declaration and initialization of the list.
如果用空的初始化器列表对变量进行初始化,对象为初始化值。
If a variable is initialized with an empty initializer list, the object is value initialized.
列表1.获得文件行指针并初始化返回变量。
Listing 1. Get file row pointer and initialize return variable.
同样,_ paras列表包含几个paragraph, paragraph本身是用PC DATA初始化的。
Likewise, a _paras list contains some paragraphs, which are themselves initialized with PCDATA.
在初始化活动的详细信息中的From列表中,选择FixedValue,然后为该值键入False。
In the From list in the details for the Initialize activity, select Fixed value, and then type false for the value.
现在,我们将通过使用一个每当WebSpherePortalServer启动时被初始化到内存中的散列表来展示。
For now, we will demonstrate by using a hash table that gets initialized into the memory whenever WebSphere Portal Server starts up.
这个初始化过程还可以引入Systemproperties散列表中的名称-对象关联。
The initialization process may also introduce name-object associations in the System Properties hash table.
初始化计数器列表(第4行到第5行)。
为了进行此操作,需要使用空对象初始化此列表。
To do so, this list needs to be initialized with empty objects.
这一列表是由工作台选择初始化的。
然后这个属性在构造函数中被初始化,如列表10所示。
The attributes then gets initialized in the constructor, as shown in the Listing 10.
清单12说明如何访问初始化器列表。
可以使用初始化器列表对标量变量进行初始化,在这种情况下应用一般的类型窄化规则。
It's okay to use initializer lists to initialize scalar variables, and the usual rule of type narrowing applies in such cases.
由于采用这种语义,应该尽可能使用初始化器列表。
Given this kind of semantics, using initializer lists should be preferred whenever possible.
现在只剩下两个次要的任务 ——初始化互斥锁和启动线程运行可上传的文件的列表。
This just leaves us with a couple of minor bookkeeping tasks -- initializing the mutex and starting a thread to run through the list of uploadable files.
在研究初始化器列表示例和典型用法之前,先讨论一下什么是类型窄化。
Before moving on to initializer list examples and typical usage, let's look at what is meant by type narrowing.
这个列表是使用定义的,它是初始化器列表。
这个列表是使用定义的,它是初始化器列表。
应用推荐