Chinese (Simplified Han script) (Boost Json Translation - en to zh_Hans translation catalogue (11 entries)

en: = Initializer Lists Initializer lists can be used to construct or assign a <<ref_value>>:
zh_Hans: = 初始化列表 初始化列表可用于构造或赋值一个&lt;<ref_value>&gt;：</ref_value>

en: Simple initializer lists produce an <<ref_array>>:
zh_Hans: 简单的初始化列表会生成一个 &lt;<ref_array>&gt;：</ref_array>

en: Initializer lists can be nested. Here we construct an array as an element of an array:
zh_Hans: 初始化列表可以嵌套。以下示例中，我们构造了一个以数组作为元素的数组：

en: When a two element initializer list is nested within an enclosing initializer list, it is unclear whether it represents an <<ref_array>> or an <<ref_object>>:
zh_Hans: 当一个包含两个元素的初始化列表嵌套在外部初始化列表中时，尚不明确它表示的是一个 &lt;<ref_array>&gt; 还是一个 &lt;<ref_object>&gt;：</ref_object></ref_array>

en: In such cases, if every element consists of a string followed by a single value, then the enclosing initializer list is interpreted as an <<ref_object>>. Otherwise, it is interpreted as an <<ref_array>>.
zh_Hans: 在这种情况下，如果每个元素均由一个字符串后跟一个值组成，则外层的初始化列表会被解释为一个 &lt;<ref_object>&gt;；否则，它会被解释为一个 &lt;<ref_array>&gt;。</ref_array></ref_object>

en: To resolve the ambiguity manually, use an explicit constructor:
zh_Hans: 要手动消除歧义，请使用显式构造函数：

en: Initializer lists can be used to unambiguously construct or assign an <<ref_object>> or <<ref_array>>:
zh_Hans: 初始化列表可用于明确地构造或赋值一个&lt;<ref_object>&gt; 或 &lt;<ref_array>&gt;：</ref_array></ref_object>

en: Similarly, an initializer list for an <<ref_object>> is always interpreted as an <<ref_object>>. In such cases, the initializer list must be a list of key-value pairs. For example, the following code will not compile because `1` is not convertible to a string:
zh_Hans: 同样，用于 &lt;<ref_object>&gt; 的初始化列表始终会被解释为 &lt;<ref_object>&gt;。此时，初始化列表必须由键值对组成。例如，以下代码无法编译，因为` `1 无法转换为字符串：</ref_object></ref_object>

en: The requirement for an initializer list to be interpreted as an <<ref_object>> or <<ref_array>> when initializing such an entity only applies to the outermost initializer list; subsequent nested elements will follow the usual ambiguity resolution rules.
zh_Hans: 当初始化一个 &lt;<ref_object>&gt; 或 &lt;<ref_array>&gt; 时，要求初始化列表被解释为对应类型的规则仅适用于最外层的初始化列表；后续嵌套的元素将遵循常规的歧义解析规则。</ref_array></ref_object>

en: Elements that are rvalues will be moved upon initialization:
zh_Hans: 在初始化时，右值元素将被移动。

en: In all cases, the <<ref_storage_ptr>> owned by an <<ref_object>>, <<ref_array>>, or <<ref_value>> constructed from an initializer list will be propagated to each element, recursively.
zh_Hans: 在所有情况下，通过初始化列表构造的 &lt;<ref_object>&gt;、&lt;<ref_array>&gt; 或 &lt;<ref_value>&gt; 所拥有的 &lt;<ref_storage_ptr>&gt; 都会递归地传播到每个元素。</ref_storage_ptr></ref_value></ref_array></ref_object>
