所谓窄化,就是人们对事物的躯体感觉、认知、情感或思维意识向某一方面或某一方向高度集中,使其所及的范围越来越狭窄,越来越收缩,越来越局限的过程,窄化过程同时表现为对窄化对象的感受性增加、敏感程度增强。被窄化的对象有自然界中存在的有形无形物质、人脑思维逻辑的精神产物、躯体感受体验等。
初始化器列表和类型窄化(type narrowing)
在研究初始化器列表示例和典型用法之前,先讨论一下什么是类型窄化。
Before moving on to initializer list examples and typical usage, let's look at what is meant by type narrowing.
可以使用初始化器列表对标量变量进行初始化,在这种情况下应用一般的类型窄化规则。
It's okay to use initializer lists to initialize scalar variables, and the usual rule of type narrowing applies in such cases.
应用推荐