Using auto with initializer list.
对初始化器列表使用auto。
The list defined using -that's an initializer list.
这个列表是使用定义的,它是初始化器列表。
Listing 12 shows how you traverse an initializer list.
清单12说明如何访问初始化器列表。
It cannot be used in the initializer list for a base class.
它无法在基底类别的初始设定式清单中使用。
If a variable is initialized with an empty initializer list, the object is value initialized.
如果用空的初始化器列表对变量进行初始化,对象为初始化值。
A constructor initializer list specifies initial values for one or more data members of the class.
构造函数的初始化列表为类的一个或多个数据成员指定初值。
Before moving on to initializer list examples and typical usage, let's look at what is meant by type narrowing.
在研究初始化器列表示例和典型用法之前,先讨论一下什么是类型窄化。
The members are initialized to the values specified in the initializer list before the body of the constructor executes.
在构造函数体现执行前,用初始化列表中指定的值初始化成员。
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.
下降推导出一个具体类型,编译器保留的更一般的初始化列表中任何可能的应用。
The constructor initializer is a list of member names, each of which is followed by that member's initial value in parentheses.
构造函数的初始化式是一系列成员名,每个成员后面是括在圆括号中的初始值。
Which greedy initializer-list examples are lurking in the Standard Library?
这贪婪的初始化列表的例子是在标准库?
Which greedy initializer-list examples are lurking in the Standard Library?
这贪婪的初始化列表的例子是在标准库?
应用推荐